HTML5 video - IE9 won't play mp4 |
HTML5 video - IE9 won't play mp4 |
Doug D at UNC |
Oct 21 2013, 09:24 AM
Post
#1
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
I have tried everything I know of to get this video to play in IE9: http://devonline.northcarolina.edu/lcl/ded...=invite_new.mp4 I tried re-encoding the video. I made sure the mime type is correct. I tried looking at the value of document.getElementsByTagName("video")[0].error.code, and it returns MEDIA_ERR_SRC_NOT_SUPPORTED : 4 I have no idea why the video will not play in IE9. Does it work for you in IE? Any suggestions of what to change? Thanks, Doug |
jimlongo |
Oct 21 2013, 11:05 AM
Post
#2
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
The error indicates the codec is not acceptable to IE9. Other browsers may be more forgiving.
This page on IE9 HTML5 video indicates the video needs to be h.264 or WebM in an mp.4 container, your video appears to be JVT/AVC Coding. |
Frederiek |
Oct 21 2013, 11:10 AM
Post
#3
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
|
Doug D at UNC |
Oct 21 2013, 04:54 PM
Post
#4
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
The error indicates the codec is not acceptable to IE9. Other browsers may be more forgiving. This page on IE9 HTML5 video indicates the video needs to be h.264 or WebM in an mp.4 container, your video appears to be JVT/AVC Coding. Thanks. How were you able to tell what encoding it was using? The converter I am using (Handbrake) said I was converting the video to H.264 This post has been edited by Doug D at UNC: Oct 21 2013, 05:05 PM |
jimlongo |
Oct 21 2013, 05:03 PM
Post
#5
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
I downloaded the video directly from it's URL in the source
Opened it in QuickTime Pro. Then using the inspector I was able to see what the video was composed of. (Quicktime non-pro would also show this just a little less info.) |
Doug D at UNC |
Oct 21 2013, 05:07 PM
Post
#6
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
I downloaded the video directly from it's URL in the source Opened it in QuickTime Pro. Then using the inspector I was able to see what the video was composed of. (Quicktime non-pro would also show this just a little less info.) Thanks. According to this: http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC JVT/AVC is the same as H.264 This post has been edited by Doug D at UNC: Oct 21 2013, 05:08 PM |
Doug D at UNC |
Oct 21 2013, 05:11 PM
Post
#7
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
Another case. Here is a page testing video playback:
http://ie.microsoft.com/testdrive/graphics...rt/default.html So, I downloaded the file from "H.264 high profile (HTML5 video)" and put it on my server and am trying to play it here: https://devonline.northcarolina.edu/lcl/ded...tudent/bbb.html it plays in Firefox, but in IE9, only one second of it plays. Why does it play on their server but not mine? I used almost the same code. |
jimlongo |
Oct 21 2013, 05:47 PM
Post
#8
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
I don't know the bunny plays fine in Safari as well.
Maybe try removing the onerror tag. Start with the simplest case possible, adding things until it breaks. As for JVT being the same as H.264 maybe someone forgot to tell MS. ? I know HTML5 video is supposed to be very straightforward in theory, but in practice I've run into the same type of codec/browser/server problems that you are experiencing. I've found that using a player is the way to go nowadays. Javascript player with Flash fallback, I use JWPlayer and I haven't had any issues. Lastly do you have .mp4 in your .htaccess file? CODE AddType video/mp4 .mp4 AddType audio/mp4 .m4a AddType video/mp4 .m4v AddType video/ogg .ogv AddType video/ogg .ogg AddType video/webm .webm |
Doug D at UNC |
Oct 21 2013, 06:05 PM
Post
#9
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
I don't know the bunny plays fine in Safari as well. Maybe try removing the onerror tag. Start with the simplest case possible, adding things until it breaks. As for JVT being the same as H.264 maybe someone forgot to tell MS. ? I know HTML5 video is supposed to be very straightforward in theory, but in practice I've run into the same type of codec/browser/server problems that you are experiencing. I've found that using a player is the way to go nowadays. Javascript player with Flash fallback, I use JWPlayer and I haven't had any issues. Lastly do you have .mp4 in your .htaccess file? CODE AddType video/mp4 .mp4 AddType audio/mp4 .m4a AddType video/mp4 .m4v AddType video/ogg .ogv AddType video/ogg .ogg AddType video/webm .webm I know I encoded the file as H.264. I did check the mime type and it is correct. I will try some type of flash player. |
Doug D at UNC |
Oct 21 2013, 06:18 PM
Post
#10
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
Also, I tried video.js, and it didn't work for me.
|
Doug D at UNC |
Oct 22 2013, 02:47 PM
Post
#11
|
Group: Members Posts: 7 Joined: 21-October 13 Member No.: 19,874 |
I figured it out. It was that the request was going through the CMS I was using. The CMS can't handle requests for partial files, so it just outputs the entire thing each time. So, in my .htaccess I made it so that my mp4 files would not be routed through the CMS anymore and it started working.
Sorry about the trouble, that was one I hadn't even thought of. |
jimlongo |
Oct 22 2013, 02:52 PM
Post
#12
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
Good one.
|
Lo-Fi Version | Time is now: 23rd April 2024 - 10:39 AM |