参考
手动注册:https://www.cnblogs.com/ztsghr/p/11081730.html
注册文件
rtmp.reg「带一个参」
1 2 3 4 5 6 7 8 9 10
| Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\rtmp] @="URL:rtmp Protocol Handler" "URL Protocol"="" [HKEY_CLASSES_ROOT\rtmp\DefaultIcon] @="C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe" [HKEY_CLASSES_ROOT\rtmp\shell] [HKEY_CLASSES_ROOT\rtmp\shell\open] [HKEY_CLASSES_ROOT\rtmp\shell\open\command] @="\"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe\" \"%1\""
|
安装注册表和软件
run.bat
1 2
| REGEDIT /S rtmp.reg start vlc_2.2.4.0.exe /s
|
调用
demo.html
1 2
| // rtmp:// 为注册路径;rtmp01open.ys7.com/openlive/ab96409e80af42d8a7becba03d2ea97b 为参数 %1 <a href="rtmp://rtmp01open.ys7.com/openlive/ab96409e80af42d8a7becba03d2ea97b">播放</a>
|