且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在链接中传递参数以打开VLC?

更新时间:2022-12-07 18:45:46

在这一点上,我认为您需要使用某种服务器端包装器/监听器,就像我在相关问题的旧答案插件中所说的那样在现代网络浏览器上不再可用.

At this point I think you would need to use some kind of server-side wrapper/listener, as I had commented in a related question's old answer, the plugin is not available on modern web browsers anymore.

取决于您需要控制启动时间的严重程度(如果需要将其构建到应用程序中),则可以调用通过其Web API的VLC HTTP服务器和远程控制,可在用户桌面上向前播放播放器.如果您采用了某种推送机制,甚至可以通过网络上的常规链接对其进行控制.

Depending on how badly you need to control the start time (and if its a thing you need to build into an application) then you could call the VLC HTTP Server via its web API and remote control to scrub the player forward on the user's desktop. If you had some kind of push mechanism in place you could even control that via a regular link on the web.

我建议将类似Pusher的框架用于Web控件: https://github.com/pusher/pusher-js

I would suggest to combine a framework like Pusher for the web controls: https://github.com/pusher/pusher-js

随后您选择了后端语言以通过HTTP(S)进行侦听,并通过其API(HTTP或本机)远程控制VLC:

Followed by your choice of backend language to listen over HTTP(S), and remote control VLC via its API (either HTTP or native):

  • LibVLC: https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc.html
  • How to Use VLC Media Player API in a C Program: https://progur.com/2017/06/how-to-use-vlc-api-in-c.html
  • VLCJ -- Java framework for the VLC media player: https://github.com/caprica/vlcj
  • Node.JS -- VLC API: https://github.com/jfh***/node-vlc-api .Net
  • Interface to VLC: https://wiki.videolan.org/.Net_Interface_to_VLC
  • PHP/Python/Perl options -- Linux control a running vlc process through command line: Linux control a running vlc process through command line

没有代码选项,只需使用VLC随附的基本Web界面即可:

No code option, just use the basic web interface that comes with VLC: https://www.howtogeek.com/117261/how-to-activate-vlcs-web-interface-control-vlc-from-a-browser-use-any-smartphone-as-a-remote/