I am trying to configure my site to use HTML 5 video. Mp4 files are served from S3. My MIME type is correct and the URL is correct. This does not work. The only thing I can think of is the wrong codec.
Here is my code:
<video width="320" height="240" controls>
<source src="{url}" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>
Now, as I understand it, the audio codec is always the same. mp4a.40.2. The video is encoded as basic, but according to http://wiki.whatwg.org/wiki/Video_type_parameters#MPEG-4 , the last two characters of the video codec in my code 1Eare a variable.
Are there any wrong characters to make the video not work? If so, how do I find the correct settings?
It’s not easy for me to wrap my head around this stuff. Thanks for any help you can provide.
source
share