在 HTML 中嵌入 vlc 播放器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3120027/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 03:37:02  来源:igfitidea点击:

embed vlc player in HTML

htmlvideo-streamingvlc

提问by user376500

i am trying to embed vlc player in a web page. what is the best way to do it. actually i have to stream a video file using vlc and show it on the web page so that other users logging to my site could see that video. i have tried various snippts but unable to embed it. any help will be greatly appreciated. Thanks

我想在网页中嵌入 vlc 播放器。最好的方法是什么。实际上,我必须使用 vlc 流式传输视频文件并将其显示在网页上,以便登录到我网站的其他用户可以看到该视频。我尝试了各种片段,但无法嵌入。任何帮助将不胜感激。谢谢

回答by c2h2

HTML way, make sure when u install VLC, u install Mozilla plug-in or ActiveX control stuff for (FF, IE or Chrome)

HTML方式,确保在安装VLC时,安装Mozilla插件或ActiveX控件(FF,IE或Chrome)

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"  width="100%"  height="100%" id="vlc" loop="yes" autoplay="yes" target="http://10.1.2.201:8000/"></embed>