Hello,
I have been using raspivid and cvlc to stream video to a html web page. However, the NPAPI plugin has been removed from Chrome, which also means my android studio project will not load the vlc plugin in a web view.
Currently on the RPi I use the command:
raspivid -o - -t 99999999999 -w 800 -h 600 --hflip | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8080/}' :demux=h264
In my web page I use the following code:
<!DOCTYPE html>
<html><body>
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab"
width="800" height="600" id="vlc" events="True">
<param name="Src" value="rtsp://PI_IP_ADDRESS:8080/" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<embed id="vlcEmb" type="application/x-google-vlc-plugin" version="VideoLAN.VLCPlugin.2" autoplay="yes" loop="no" width="640" height="480"
target="rtsp://PI_IP_ADDRESS:8080/" ></embed>
</OBJECT>
</html></body>
Does any one know an alternative solution to stream raspivid video to web browser?
Thanks
Robyn