Friday, 2 December 2016

Simple video streaming Example In HTML5

Here we not Use any RTMP protocol in Server side. 
This video Is simply present in server  Side.And Browser is download file as stream and feed to Our video element.  

       <video src="http://youlearners.com/streaming/Avengers2.mp4"
               controls preload="auto" width="640" height="264"
               data-setup='{"controls":true}'>
            <source type='video/mp4' />
     </video>

 <!---here i Use data-setup='{"controls":true}' and preload="auto" for load and play simultaneously---->

OPTPUT

No comments:

Post a Comment