我的网络摄像头图像(没有声音)流向 html 页面时遇到问题.我使用最新的(v2.0.2 vlc for Windows)进行流式传输,这里是命令行:
"c:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy dshow:// --dshow-vdev="Logitech QuickCam Chat" --dshow-adev=none --dshow-caching=0 --sout=#transcode{vcodec=h264,vb=1024,channels=1,ab=128,samplerate=44100,width=320}:http{mux=ts,dst=:8080/webcam.mp4}
当我在另一个vlc播放器(http://127.0.0.1:8080/webcam.mp4)中打开流时,我可以观看流,但是当我想嵌入到一个网页时,我什么都看不到!这里是代码:
Video TestYour browser doesn't appear to support the HTML5 element.
比我试图在浏览器中打开它:
file:///C:/videostreaming/video.html
我可以在chrome示例中看到,是网络流量,流正在下载,但没有显示.