使用 HTML5 视频嵌入 Google Drive 视频 [英] Embedding Google Drive Videos using HTML5 video

查看:82
本文介绍了使用 HTML5 视频嵌入 Google Drive 视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种使用 HTML5 标签嵌入 Google Drive 视频的方法.当前的选项并不完全适合我想对玩家做的事情.直接从 Google Drive 嵌入的链接似乎不允许您删除在单独的选项卡中打开视频的按钮,也不允许自定义播放器的外观.有没有办法从驱动器链接中获取实际文件并将其嵌入到 HTML 标签中?

I am searching for a way to embed Google Drive videos using the HTML5 <video> tag. The current option isn't exactly adequate for what I'd like to do with the player. The embedded link directly from Google Drive doesn't seem to allow you to remove the button that opens the video in a separate tab nor customize the appearance of the player. Are there any ways to get the actual file from a drive link and embed it into an HTML <video> tag?

我知道这样的代理播放器"脚本,但它们看起来非常粗略和昂贵.获取下载链接等旧方法不再有效,/get_player 方法也不再有效.任何见解将不胜感激.

I'm aware of such "proxy player" scripts but they appear very sketchy and pricey. The old methods such as getting the download link no longer work nor does the /get_player method. Any insight would be much appreciated.

推荐答案

<video>
    <source src="https://drive.google.com/uc?export=download&id=videoID" type='video/mp4'>
</video>

将链接中的videoID"替换为您的视频 ID.(找到它 - 右键单击​​ Google Drive 视频,获取可共享链接)

Replace "videoID" in the link with your video ID. (to find it - right click on the Google Drive video, get shareable link)

这篇关于使用 HTML5 视频嵌入 Google Drive 视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆