从网络浏览器播放本地视频 [英] Play local video from web browser

查看:81
本文介绍了从网络浏览器播放本地视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户访问我的网站时,如何播放他们本地硬盘上的视频?另外我想将视频与网站上的控件同步.

How can I play a video that is on a user's local hard drive when they go to my website? Also I want to sync the video with controls on the website.

推荐答案

这对浏览器来说是一个巨大的安全漏洞,因此您需要使用 Flash 或 Java 来请求权限并让用户选择文件...我知道 Java 可以,但我不确定 Flash 可以.

This would be a massive security hole on the part of the browser, so you'd need to use Flash or Java to request permissions and let the user select the file... I know Java can, but I'm not sure Flash can.

如果您可以控制他们的浏览器,您或许可以传入一个命令行标志来忽略所有安全检查……但是一个人在访问其他站点时会忘记重新启用安全性.

If you have control over their browser, you can perhaps pass in a command-line flag to ignore all security checks... but one person is going to forget to re-enable the security when they visit other sites.

这篇关于从网络浏览器播放本地视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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