Html 如何在网页中嵌入 VLC

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18040303/
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 11:51:05  来源:igfitidea点击:

How to embed VLC in webpage

javascripthtmlcssembedvlc

提问by Kryptos

I am trying to embed a video into my HTML/ASP webpage using VLC. The box appears showing the VLC player in FireFox, but it won't play anything. This is what it looks like:

我正在尝试使用 VLC 将视频嵌入到我的 HTML/ASP 网页中。该框出现在 FireFox 中显示 VLC 播放器,但它不会播放任何内容。这是它的样子:

enter image description here

在此处输入图片说明

Please tell me what I am doing wrong.. I've tried many different things.

请告诉我我做错了什么..我尝试了很多不同的事情。

采纳答案by Kryptos

<embed 
    type="application/x-vlc-plugin" 
    pluginspage="http://www.videolan.org" 
    version="VideoLAN.VLCPlugin.2"
    width="640"
    height="480"
    target="file:///x:/vid.avi"
    id="vlc">
</embed>