Html5 Video and Flash Approach -


looking html5 video tag, , researching browsers support video file types, , initial thought things got harder using flash.

i wondering if there skeleton code (combined development approach videos) has figured out following:

  1. if flash available, use it
  2. if not, try html5 video ogg format
  3. if doesn't work, try html5 video h.264 format
  4. if doesn't work, try html5 video webm format

based on seeing, correct in thinking now, in order accommodate users on browsers, video needs published in 4 formats? if so, html5 video thing epic fail!

anyway, ideas, processes, links libraries, etc appreciated.

thanks -

it's not hard. can give multiple sources (in multiple formats) single <video> tag.

<video width="320" height="240" controls>   <source src="pr6.mp4"  type='video/mp4; codecs="avc1.42e01e, mp4a.40.2"'>   <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"'> </video> 

also better choice search native html5 video first, fallback flash.

the 2 fromats need webm (royaltiy free, supported alternative briwsers mozilla, opera, chrome , others) , h.264 big ones (ie , safari). fallback option (flash) able play h.264.

i suggest reading this guide if haven't already.

edit:

if you're looking lowest common demoninator it's surely hinted h.264 on http. flash can play without media server , it's format ios supports anyway, ok 1 single format time being.

but single format can support html5-bsed playback on 2 factory teams (safari , ie). know video tag kinda new build on solid foundations in os's. @ state better option flash.

so real dilemma after ith alternative browsers. can use 2 formats instead of 1 (to throw in webm) or stay h.264 , use flash on non-h264 browsers.

this rather question of personal preference (and cost of double storage). storage free these days, bandwidth real cost factor anyway.


Comments