update for native flash player for FF 3.5

This commit is contained in:
Andrew Dolgov 2009-08-18 11:06:16 +04:00
parent 541890fb4d
commit 8086c2227b
1 changed files with 2 additions and 1 deletions

View File

@ -2160,7 +2160,8 @@ function switchToFlash(e) {
} }
function html5AudioOrFlash(type) { function html5AudioOrFlash(type) {
var audioTag = document.createElement('audio'); var audioTag = document.createElement('audio');
if(! audioTag.canPlayType || audioTag.canPlayType(type)=="no"){ if(! audioTag.canPlayType || audioTag.canPlayType(type) == "no" ||
audioTag.canPlayType(type) == ""){
if($('switchToFlashLink')){ if($('switchToFlashLink')){
switchToFlash($('switchToFlashLink')); switchToFlash($('switchToFlashLink'));
} }