html5- mp4 video is not supported in all browsers -
mp4 format not supported browsers when using video tag of html5. googled problem , came conclusion have convert video other formats .ogg .webm etc run video in browsers or use plugins. question if convert 1 video 3 others formats occupy more space on server , have huge data on website , isn't ridiculous solution convert 1 video 3 other formats. solution problem. have idea this.
try reduce video frames bit rate,otherwise can't. per our clients requirement, need video play in browsers, we've need convert formats. otherwise compatibility not perfect. i've worked html5 videos , audios files in many projects. whether important compatibility.
in video:
we have include video , audio formats as,".mp4,.webm,.ogg,.ogv"
<video width="480" height="300" controls="controls" preload="auto" poster="path-to-poster.jpg"> <source src="path-to-mp4.mp4" type="video/mp4" /> <source src="path-to-webm.webm" type="video/webm" /> <source src="path-to-ogv.ogv" type="video/ogg" /> </video>
in audio:
as same below,
<audio controls preload="none" style="width:480px;"> <source src="path-to-m4a.m4a" type="audio/mp4" /> <source src="path-to-oga.oga" type="audio/ogg" /> <p>your browser not support html5 audio.</p> </audio>
reference:
Comments
Post a Comment