Comments (7)
iOS 端无法显示 PDF 和视频属于正常现象吧?我记得 iOS Safari 并不支持……
from onedrive-cf-index.
iOS 端无法显示 PDF 和视频属于正常现象吧?我记得 iOS Safari 并不支持……
研究了一下 iOS 端 PDF 感觉可以使用pdf.js来实现
from onedrive-cf-index.
试了下 PDF.js ,在 ios 端是可以预览 PDF 了
PDF.js
需要后端支持,可以托管在GitHub Pages,官方的pdf.js-gh-pages
然后使用https://sengoku-f.github.io/pdf.js/web/viewer.html?file={PDF链接}
进行调用
解决 ${file['@microsoft.graph.downloadUrl']}
跨域问题
更改文件名或 URL,以绕过缓存并指示 Cloudflare 检索最新的 CORS 标头
fallbackLink: '<iframe src="https://sengoku-f.github.io/pdf.js/web/viewer.html?file=${file['@microsoft.graph.downloadUrl']}?proxy" style="height: 80vh;width: 100%;border: 0;"></iframe>'
ipad 和 iPhone PDF.js 效果预览
from onedrive-cf-index.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from onedrive-cf-index.
我研究一下 PDF.js,视频黑屏在 Linux 的 Chrome 里面复现了,但我不知道怎么解决,我单独开一个 issue 来 track 视频黑屏问题。(我明明记得之前好好的……)
from onedrive-cf-index.
视频黑屏问题迁移到 #73
from onedrive-cf-index.
安卓pdf也无法预览呢?
from onedrive-cf-index.
Related Issues (20)
- wrangler login 执行时卡在 Waiting for API token... HOT 2
- 希望能添加个视图预览 HOT 1
- cloudflare works 使用路由开文件提示重定向次数过多 HOT 1
- 关于上传文件问题
- Custom domain does not works HOT 1
- 从使用 wrangler 添加 Cloudflare Workers 环境变量开始报错(小白求助) HOT 10
- [bug?] OAuth Refresh token过期 HOT 2
- Preview cache (seems to) break Markdown preview
- 使用Insomnia获取refresh_token被告知code已过期
- 从6月份开始,Cf用户报错Worker threw exception,我这边报错Script Threw Exception,重新再来还是如此。 HOT 1
- Error 1101 Worker threw exception HOT 2
- 能否添加一个图床功能 HOT 2
- 叨扰大佬一下 我捣鼓了一晚上 一直获取不了refresh_token HOT 1
- It's not necessary to register new applications HOT 1
- 找不到 zone_id HOT 4
- Publish时出现以下错误 HOT 4
- 输入wrangler login 命令后报错 HOT 1
- Custom Domain Worker threw exception 1101 [自訂域名拋出 1101 錯誤] HOT 1
- 在进行到修改 src/config/default.js后该怎么办呢,是像原heymind一样将js填入worker的部署页面还是怎么操作呢(本人纯新手,不懂wrangler知识) HOT 1
- Markdown渲染base64编码图片时出现错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedrive-cf-index.