Browsers such as Internet Explorer and Safari support the .H264 codec, which plays mp4 files. Firefox supports Theora codec, which plays .ogv files. Chrome supports both .H264 and Theora. But for your video to work in all browsers, you need to encode your mp4 video in different formats using an application like HandBrake. Then enter your code:
<video id="headervideo" controls> <source src="<?php echo base_url(); ?>assets/home.mp4" type="video/mp4"> <source src="<?php echo base_url(); ?>assets/home.webm" type="video/webm"> <source src="<?php echo base_url(); ?>assets/home.ogv" type="video/ogg"> Your browser does not support the video tag. </video>
and also modify your .htacess file to support video
AddType video/mp4 mp4 m4v AddType audio/mp4 m4a AddType video/ogg ogv AddType audio/ogg ogg oga AddType video/webm webm
Haben source share