通过web浏览器中打开VLC网络流 [英] Open VLC Network Streaming from web browser

查看:1634
本文介绍了通过web浏览器中打开VLC网络流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含视频文件和使用VLC查看它们的客户端计算机的web服务器。现在,为了观看视频,客户端必须在网页上,右键点击直接链接,复制它,去VLC,打开网络流选项,并粘贴在URL中。我知道VLC有一个Web插件,但我不希望使用的。

I have a web server containing video files and client computers that use VLC to view them. Now, in order to view the video, the client must go on the webpage, right click the direct link, copy it, go to VLC, open the Network Stream option and paste the URL in. I know VLC has a web plugin but I don't want to use that.

我想知道是否有可能,通过JavaScript,HTML,或其他方法,打开VLC和视频网址复制到网络流屏幕,所以我的客户只需要点击观看。

I am wondering if it is possible, via JavaScript, html, or some other method, to open VLC and copy the video URL to the Network Streaming screen, so my clients simply have to click and watch.

推荐答案

这是可能的,使用一个播放列表文件。

This is possible, using a playlist file.

播放列表文件,在浏览器中加载时,通常会自动下载并启动相关的球员。 VLC,安装的时候,通常会自身注册为处理这些类型。

Playlist files, when loaded in a browser, will typically download and automatically launch the associated player. VLC, when installed, will typically register itself as the handler for these types.

对于 M3U播放文件,你真正需要的是一个单一的文件线,包含要播放的视频的URL。您可以选择包括一些元数据加标题的视频:

For an M3U playlist file, all you really need is a file with a single line, containing the URL of the video you wish to play. You can optionally include some metadata for titling that video:

#EXTM3U
#EXTINF:5000,Super Awesome Example Video Title
http://example.com/videos/super-awesome-example-video.mp4

这篇关于通过web浏览器中打开VLC网络流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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