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.

You can read more about this move on the blog.

Mp4 & Amazon S3 gotcha to look out for

Paul's Avatar

Paul

15 Dec, 2011 03:19 PM

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')

  1. 2 Posted by Meir on 21 Mar, 2012 11:50 AM

    Meir's Avatar

    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.

  2. 3 Posted by Luis on 20 Aug, 2012 09:44 AM

    Luis's Avatar

    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)

  3. 4 Posted by Chris on 11 Mar, 2013 07:42 PM

    Chris's Avatar

    Wow, you saved me dude. Worked great!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Jul, 2014 04:00 PM
22 Jul, 2014 01:12 PM
21 Jul, 2014 10:07 PM
18 Jul, 2014 10:13 PM
17 Jul, 2014 09:04 PM

 

15 Jul, 2014 02:53 PM
11 Jul, 2014 05:11 PM
09 Jul, 2014 03:01 AM
08 Jul, 2014 08:01 PM
07 Jul, 2014 04:57 PM
03 Jul, 2014 04:51 PM