html - How to fallback to a different flash movie if the first one requires a newer flash player version -
i want display videos using flash (for older, non-html5 video browsers). possible:
- using flv video files since flash version 7
- and h264 video files , high-def since flash version 10.
so i'd first try version 10 variant, , if not available, try version 7 variant (i don't care browsers no flash installed, or version < 7). note have 2 different swf media players each case (don't know if there single 1 work both formats in cases).
if possible, should happen without javascript. otherwise, using swfobject ok, however, don't know how use case.
so far have tried have 2 nested <object>
tags, outer 1 containing flash 10 media player, playing mp4 file, , inner 1 containing flash 7 media player, playing flv file. not work browsers flash player version between 7 , 9, since failure doesn't happen @ browser level, because there is flash player installed. failure happens inside swf media player doesn't when necessary version 10 video playback support missing flash player plugin.
i don't think have way deal flash versions unless use javascript. can try this, in <script>
tag:
var flashversion = swfobject.getflashplayerversion(); if (flashversion['major'] >= 10){ /* embed hd version */ } else if (flashversion['major'] >= 7) { /* embed flv version */ }
Comments
Post a Comment