NOTICE: FORUMS MOVING
Thank you for visiting and participating in the Video.js forums. We are currently moving the forums to Stack Overflow and GitHub Issues. If you have a question or need help with Video.js, please post your question on Stack Overflow and add the tag 'video.js'. If you've found a specific bug in Video.js, please submit it in the issues tracker.
Mp4 & Amazon S3 gotcha to look out for
This is more a heads up than anything, and I wasn't sure where to put it, but I saw people had had issues with IE9 and this may be an overlooked fix if you're using S3 to stream your videos.
We encountered the issue where IE9 wasn't playing videos
properly. When pressing play, it would show the white circle and
not play the video.
It turned out the plugin we used to upload to S3 was not correctly
identifying the content type of the file, so when IE came along and
tried to use the mp4, it exploded (as IE9 tends to do
spit).
The solution, was to explicitly set the content type on the S3 store function. We use ruby on rails, so that's what I've pasted below, but I'm sure the same solution would work for others:
AWS::S3::S3Object.store('/projectname' + current_url,
open(current_path), 's3.address.com', :access => :public_read,
:content_type => 'video/mp4')
2 Posted by Meir on 21 Mar, 2012 11:50 AM
I've spent hours trying to figure out why only Firefox's .webm playback wasn't working, and this was exactly the problem. Thanks a million!
By the way, I'm not on ruby on rails, I'm using a standalone S3 client (Cloudberry Explorer), and accomplished it by clicking "set HTTP headers" for my video file.
3 Posted by Luis on 20 Aug, 2012 09:44 AM
many thanks for pointing that. you saved me hours of work!
if you wish to change the Content-Type using S3's web interface, you can do it under Properties>Metadata (you can select from a list of MIME types or just write your own)
4 Posted by Chris on 11 Mar, 2013 07:42 PM
Wow, you saved me dude. Worked great!