【发布时间】:2020-08-26 10:40:02
【问题描述】:
我正在寻找一种让人们通过适用于所有浏览器(包括 I 设备)的谷歌云存储来提供视频的通用方式。
我正在尝试在我的网页(Vue 前端、node.js 后端)上播放存储在谷歌云存储中的视频,但我无法让它们在我的所有设备上持续播放。
- 我已经尝试了媒体链接-> https://storage.googleapis.com/download/storage/v1/b/mybucket/o/video.mp4generation=123456789101112&alt=media
- 我已经尝试了公共链接-> https://storage.googleapis.com/MyBucket/video.mp4
- 我已尝试签名 URL
- 我在标签中尝试了许多不同的选项
- 在线播放
- 控件
- 我包含内容类型'type="video/mp4"'
似乎一切都适用于所有流行的浏览器,除了 safari,公共链接适用于 MAC 上的 safari,但不适用于我的手机。
公共链接似乎也适用于某些版本的 Iphone/设备,例如 iphone 7 、I pad mini 2
我已经阅读了有关接受范围的信息,这似乎已经通过谷歌存储链接设置,因为这在检查时显示在标题中。
例子:
<video controls playsinline>
<source src="https://storage.googleapis.com/MyBucket/video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
【问题讨论】:
-
你有想过这个吗?遇到类似的问题。
-
这方面有什么更新吗?
标签: html node.js iphone vue.js google-cloud-storage