Play local video from web browser [closed]

可紊 提交于 2020-01-16 18:16:12

问题


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.


回答1:


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.




回答2:


I'm afraid you'd either have to get them to upload it, or use a java applet. I don't think even the mighty Flash can do what you're looking for.



来源:https://stackoverflow.com/questions/5958141/play-local-video-from-web-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!