hello!
i'm playing around with html5 video cause it's nice to have fallback for iphone/ipad.
html5 video first checks for <source>
elements, if no formats are supported it falls back to whatever content is provided inside the <video>
tag (e.g. flash).
i'd love to reverse the behaviour to save bandwidth: use flash by default, if not available fall back to html5 video.
is there any way to get this behaviour without using javascript? (then the solution gets quite obvious).
best, hansi,-
p.s. i did try turning the elements "inside-out" (<object><video/></object>
instead of <video><object/></video>
, but that results the video displayed twice)
p.p.s. my current solution is
if( navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ){ ... }
else{ ... }
which is sub-optimal, cause it works for iphone/ipad, but results in a big mess when using old browsers without flash installed.