Hi SilverSurfer5150,
For the most recent responsive site I did I used HTML 5 video and tested it on Android, iPhone (ver 3/4/4s), Palm Pre, and BlackBerry Bold and It worked really well.
The biggest challenge was finding the correct encoding for all the different video streams. I eventually found people on the Internet that had published optimal setting and then combined these into a Video document that I referred to when compressing the video.
This video resizes with the browser so it will automatically adapt to landscape or portrait on smart phones and on Tablets.
HTML Code:
<video preload controls>
<source src="./video/video.mp4" type='video/mp4;' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="./video/video.webm" type='video/webm;' type='video/webm; codecs="vp8,vorbis"'/>
<source src="./video/video.ogv" type='video/ogg;' type='video/ogg; codecs="theora,vorbis"'/>
<object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="640" height="352">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashvars" value='config={"clip":{"url":"http://www.somedomain.com/video.flv","autoPlay":false,"autoBuffering":true}}'/>
<!-- Image Fallback. Typically the same as the poster image. -->
</object>
</video>
And the C.S.S. a nice border and scaled beautifully.
HTML Code:
video {
width: 90%;
border: 3px solid #362645;
margin: 20px 0 0 0;
padding: 1em;
-moz-box-shadow: 0 0 8px hsla(0,0%,20%,.8);
-webkit-box-shadow: 0 0 8px hsla(0,0%,0%,.8);
box-shadow: 0 0 8px hsla(0,0%,0%,.8);
-moz-border-radius: 3px;
}
Hope this helps.
Steve
Bookmarks