Video not playing on Apple products - html

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>

Related

Video doesn't play on site but it does somewhere else

I'm working on a website with a HTML5 video tag. The video doesn't play on the website. But if I test it somewhere else, it plays without a problem.
http://carflow-staging.houston-1.hybridmedia.be/
My code is here:
<video class="video-splash__video" width="720" height="405" autoplay="" poster="http://carflow-staging.houston-1.hybridmedia.be/wp-content/themes/framework_wp/img/videoCarflowBackground.png">
<source src="http://carflow-staging.houston-1.hybridmedia.be/wp-content/themes/framework_wp/video/videoCarflowBackground.mp4" type="video/mp4">
<source src="http://carflow-staging.houston-1.hybridmedia.be/wp-content/themes/framework_wp/video/videoCarflowBackground.ogg" type="video/ogg">
<source src="http://carflow-staging.houston-1.hybridmedia.be/wp-content/themes/framework_wp/video/videoCarflowBackground.webm" type="video/webm">
Your browser does not support the video tag or the file format of this video.
</video>
What could be the issue?

Remove controls in Android

How can I remove the controls in Android? Currently, controls="false" this removes the play button in iPhones. How about in Android?
<video playsinline loop muted autoplay controls="false" class="fillWidth" poster="assets/images/Snapshots/The-Launch.jpg">
<source src="assets/images/MP4/The-Launch.mp4" type="video/mp4" />Your browser does not support the video tag. I suggest you upgrade your browser.
<source src="assets/images/MP4/The-Launch.webm" type="video/webm" />Your browser does not support the video tag. I suggest you upgrade your browser.
</video>

html5 video dont working

<video height=600 width=800 controls >
<source type="video/mp4" src="video1.mp4"/>
<source type="video/ogg" src="video1.ogg"/>
<source type="video/webm" src="video1.webm"/>
</video>
I've added mime type video/mp4 on iss.
in chrome this video working.but it dosnt work in iexplorer10.can you help?
Most of the video types are not supported by IE various versions. Check here:
http://caniuse.com/#search=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