環境:windows/android/ios
-
windows端保存以下內容為reg文件並運行
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\vlc]
"URL Protocol"="C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe"
@="FileVersionProtocol"
[HKEY_CLASSES_ROOT\vlc\DefaultIcon]
@="C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe,1"
[HKEY_CLASSES_ROOT\vlc\shell]
[HKEY_CLASSES_ROOT\vlc\shell\open]
[HKEY_CLASSES_ROOT\vlc\shell\open\command]
@="\"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe\" \"%1\""
注:目錄地址是vlc的安裝地址
-
在瀏覽器中輸入以下內容 即可調出vlc播放器
vlc://
-
如果指定播放網絡流視頻,輸入以下內容 即可播放test.ts視頻文件
vlc://http://172.xxx.xxx.xxx/test.ts