I have a html page that use flash object with html5 fallback to play medias. What I have observed when loading the page is if the browser supports the provided html5 video type, regardless flash installed or not, the html5 video will always be downloaded.
In my opinion, this is a total waste because if your browser support flash, you will never be able to fallback to html5, however, the whole html5 media is still downloaded. It also may affect the viewing quality of your flash when your network condition is not well.
Also, further to my previous question Both player will playback if set html5 autoplay to be true when using flash to html5 fallback, I have use
$(document).ready(function(){
if (swfobject.hasFlashPlayerVersion("9.0.18")) {
var video = document.getElementsByTagName("video")[0];
var audio = document.getElementsByTagName("audio")[0];
if (video != null) {video.parentNode.removeChild(video);}
if (audio != null) {audio.parentNode.removeChild(video);}
}
});
to detect the flash version of browser. If the browser supports flash, then the video/audio part will be removed from html page.
It seems to partially solve my question, as the download will be halted half way through, but I still don't think this is a good solution since the media is still be partially downloaded.
I would like to know if anyone have some insights in this area?
Thank you!