I hosted my site in Google Cloud and also i developed the site like video blog. I'm uploading the videos through database and using mysql select query i'm fetching the videos in front-end like this.
<?php
while($getSharePer01=mysqli_fetch_assoc($getPostStatus01)){
extract($getSharePer01);
?>
<video id="sampleMovie" class="embed-responsive-item" height="500" preload controls>
<source src="<?php echo $u_pvid; ?>" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'/>
<object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="640" height="360">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashvars" value='config={"clip":{"url":"HTML5Sample_flv.flv","autoPlay":false,"autoBuffering":true}}' />
</object>
</video>
<?php
}
?>
In this case first time buffering it's quickly happening but one position it stop playing the video and buffering balance video that time it's talking long time to buffer like 2-3 mins.. My questions about How to speed up the video buffering time like other social network site?? anyone help me to fix this issues...