Video attribute won't play in Firefox - Just fine in Chrome

Permalink
Okay. I'm losing my mind. I'm trying to display a video using a custom attribute and I'm getting nothing in Firefox, but the video plays in Chrome. I will admit that my experience with video as a Web Dev is very very very limited. I'm using VLC Player to convert the video based on a YouTube video. I've added the "AddType" line to the htaccess. Still nothing out of Firefox. I was hoping more HTML5 dev could tell me what I'm doing wrong. Here is the code I've got:

<video controls>
   <source src="<?php echo $c->getAttribute('sample_clip')->getVersion()->getRelativePath(); ?>" type="video/mp4" />
            <p>Your browser does not support H.264/MP4.</p>
</video>


If someone knows how to access the video player block, I'm game for it too. I just don't know how. *sighs* HELP!!

rainmaker
 
Mainio replied on at Permalink Best Answer Reply
Mainio
You should provide e.g. a webm alternative for the video. Firefox does not support mp4.

https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_fo...
rainmaker replied on at Permalink Reply
rainmaker
Wow. That was seriously all!!! I read a couple of different documents that said that you could do a MP4 for later versions of Firefox. They were wrong!

THANKS!

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.