robyncatterall
Posts: 8
Joined: Thu Aug 13, 2015 10:07 am

HTML Video Streaming

Thu Dec 10, 2015 11:33 am

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

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: HTML Video Streaming

Thu Dec 10, 2015 2:24 pm

If you just use a link it will open vlc and show you the video.
there are a few optionsyou can look into.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “Other programming languages”