How to play H.264 video in a browser?

I transcoded every frame of my video from RGB → YUV12 → H264. At the output, I have an H.264 video stream, and I want to watch it without a VLC media player, etc.

The stream must be accessible from different devices, such as a PC, tablet, smartphone in this way

I will use only the browser.

Which method to choose?

Maybe Flash helps? Transcode video from h.264 to mp4? Anything else?

Thanks for any idea.

+2
html5 video-streaming
source share
1 answer

The <video> supports RTSP streams.
In Firefox, Chrome, and IE9 + you can use:

 <video src="rtp://domain.com/stream"> Your browser does not support RTP streams. </video> 

or

 <video src="rtsp://domain.com/stream"> Your browser does not support RTP streams. </video> 

In a good old IE8, VLC comes with an ActiveX plugin (VLC web plugin) that allows streaming video:

 <OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="640" height="480" id="vlc" events="True"> <param name="Src" value="rtsp://cameraipaddress" /> <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://cameraipaddress" ></embed> </OBJECT> 
+2
source share

All Articles