Trouble rendering Html5 video in IE - html

Could anyone tell me why the videos, under the 'MockUps' section of the following website will work in chrome but not in IE9?
I have used html5 to implement the videos
http://homepages.shu.ac.uk/~a8025613/Index.html
A video element is coded like this:
<video id=0 controls width=320 height=240>
<source src="House_1/House_1.ogv" type='video/ogg; codecs="theora, vorbis"'/>
<source src="House_1/House_1.webm" type='video/webm' >
<source src="House_1/House_1.mp4" type='video/mp4'>
<p>Video is not visible, most likely your browser does not support HTML5 video</p>
</video>

Related

Video not playing on Apple products

I'm playing a video through the browser using:
<video class="video">
<source src="video.mp4" type="video/mp4" />Your browser does not support the video tag. I suggest you upgrade your browser.
</video>
It's not working on Apple's through Firefox which I understand is because I'm using the H.264. How do I render to play on an Apple with Firefox as well?
<video class="video">
<source src="video.mp4" type="video/mp4" />
<source src="video.webm" type="video/webm" />Your browser does not support the video tag. I suggest you upgrade your browser.
</video>

video not loading in html5

I'm having a problem with the HTML5 video player, doesn't show the video, in a html file I have:
<video>
<source src="video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
Video tag not supported.
<video>
I even tried without the codec atributte in chrome I gets nothing, only the black square of the reproductor
the file video.mp4 is inside the same folder of the html, it doesn't even show a preview, nothing!
It should work with HTML5 video tag perfectly. I've put an example for your reference.
<video controls="" autoplay name="media">
<source src="http://www.html5rocks.com/en/tutorials/video/basics/devstories.mp4" type="video/mp4;codecs="avc1.42E01E, mp4a.40.2"">
</video>
This should work perfectly:
<video width="300" height="200" controls>
<source src="movie.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

Making video tag play in all browsers

I have a video tag looking like this:
<video width="380px" height="190px" controls>
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogv" type="video/ogg" />
Your browser does not support the video tag.
</video>
This plays the video in Firefox and Chrome. However, IE9 and 10 simply states unreadable source (the video 'box' itself turns up so the tag is supported). Safari doesnt seem to support the video tag and thus I only see my fallback message. However, if I go to the URL directly in any browser I can watch the movie in Firefox + Chrome and download it in IE + Safari.
What should I do to make the video playable in all browsers?
Add this line in your head somewhere.
<script src="http://api.html5media.info/1.1.5/html5media.min.js"></script>
Also try putting your source in the opening video tag.
<video source src="movie.mp4" type="video/mp4" width="380px" height="190px" controls></video>
Hope fully that helps
I usually have four versions of the same video for cross-browser compatibly:
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
<source src="movie.webm" type="video/webm">
<object data="movie.mp4" width="320" height="240">
<embed src="movie.flv" width="320" height="240">
</object>
</video>
.mp4, .webm, .ogv, and a flash fallback .flv. This has worked well for me cross-browser. Another thing to note is that for mobile, a higher-optimised .mp4 video is more likely to work (I've had issues with this in the past).

Getting video to show up in IE and FF

I'm setting up oneweekfatloss.com but having trouble getting video to show up.
It works in Chrome and Safari, but not in IE and FF. I've created an mp4 and .ogv file.
Am I doing something wrong with my html?
<video width="720px" height="420px" autoplay>
<source src="https://s3.amazonaws.com/paleojumpstart/paleovideos/Paleo+Sales+Video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="https://s3.amazonaws.com/paleojumpstart/paleovideos/Paleo_Sales_Video-OGV.ogv" type='video/ogg; codecs="theora, vorbis"'>
<object data="https://s3.amazonaws.com/paleojumpstart/paleovideos/Paleo+Sales+Video.mp4" width="720px" height="420px">
<embed type="application/x-shockwave-flash" src="https://s3.amazonaws.com/paleojumpstart/paleovideos/Paleo_Sales_Video-Flash.flv" width="720px" height="420px">
</object>
</video>
EDIT: I realized I hadn't set the permissions correctly on Amazon s3. That solved the FF problem. IE's still not working, though.
EDIT2: IE will play the video if I open the page locally, but not from my server.
See these pages for format compatibility: WebM, Mp4, and Ogg. FireFox only supports WebM and Ogg. IE does not support the standard <source tag. Here is a code excerpt from MSDN:
<video width="400" height="300" poster="frame.png" autoplay controls loop>
<source src="video.ogv" type='video/ogg; codecs="theora,
vorbis"'>
<source src="video.mp4" type='video/mp4; codecs="avc1.42E01E,
mp4a.40.2"'>
</video>
You can test video format campatability on this page: http://ie.microsoft.com/testdrive/Graphics/VideoFormatSupport/Default.html

HTML5 mp4 video working in Chrome and Desktop Safari but not iPhone

I am trying to simply play an HTML5 video which will be compatible with all common browsers (including mobile devices). For now, I am testing with one custom video and a sample video.
<video width="680" height="383" controls>
<source src="immunize-video-1/immunize_web_h.264.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="immunize-video-1/immunize_web_h.264.ogv" type='video/ogg; codecs="theora, vorbis"'>
[FLASH FALLBACK HERE]
</video>
<video width="680" height="383" controls>
<source src="big-buck-bunny/big_buck_bunny.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="big-buck-bunny/big_buck_bunny.ogv" type='video/ogg; codecs="theora, vorbis"'>
[FLASH FALLBACK HERE]
</video>
The results on a staging server:
Chrome: OK
Desktop Safari 5: OK (screenshot)
iPhone Safari: Top video does not play (screenshot below)
What could cause this to work on desktop Safari but not on the iPhone? I tried a few variations on the video type parameters such as:
<source src="immunize-video-1/immunize_web_h.264.mp4" type='video/mp4; codecs="avc1.64001E, mp4a.40.2"'>
Also tried leaving the codec attribute blank:
<source src="immunize-video-1/immunize_web_h.264.mp4" type='video/mp4'>
but none listed seemed to work for the iPhone. The video was exported at 3000 kb/s h.264.
Also, the video causing problems is a 94MB file size.
iOs doesn't support all the profiles that h.264 provides. You have to encode your h264 with a baseline profile only in order for it to be playable on iphone/ipad.