[Webkit-unassigned] [Bug 46897] REGRESSION: Audio on Forvo will not play
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 14 10:33:33 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=46897
Eric Carlson <eric.carlson at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Eric Carlson <eric.carlson at apple.com> 2010-10-14 10:33:33 PST ---
I haven't reproduced the crash yet, but the audio doesn't autoplay because the element is created with setting innerHTML - https://bugs.webkit.org/show_bug.cgi?id=45188.
function Play(id, path_mp3, path_ogg) {
var path_mp3='http://'+_SERVER_HOST+'/player-mp3Handler.php?path='+path_mp3;
var path_ogg='http://'+_SERVER_HOST+'/player-oggHandler.php?path='+path_ogg;
var audioTagSupport = !!(document.createElement('audio').canPlayType);
if (audioTagSupport) {
myAudio = new Audio("");
canPlayMp3 = ("no" != myAudio.canPlayType("audio/mpeg")) && ("" != myAudio.canPlayType("audio/mpeg"));
canPlayOgg = ("no" != myAudio.canPlayType("audio/ogg")) && ("" != myAudio.canPlayType("audio/ogg"));
} else {
canPlayMp3 = false;
canPlayOgg = false;
}
if (navigator.userAgent.toLowerCase().indexOf('iphone')!=-1) {
window.location.href=path_mp3;
return false;
}
else if (canPlayMp3) {
var html='<audio autoplay="true"><source src="'+ path_mp3 +'"></audio>';
}
else if(canPlayOgg) {
var html='<audio autoplay="true"><source src="'+ path_ogg +'"></audio>';
}
else {
var html='<object type="application/x-shockwave-flash" data="'+player_path+'" width="1" height="1">'+
'<param name="movie" value="'+player_path+'" />'+
'<param name="flashvars" value="path='+path_mp3+'&_SERVER_HTTP_HOST='+_SERVER_HOST+'" />'+
'</object>';
}
var container=document.getElementById('player');
container.innerHTML=html;
sumHit(id);
return true;
}
*** This bug has been marked as a duplicate of bug 45188 ***
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list