<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>46897</bug_id>
          
          <creation_ts>2010-09-30 07:08:36 -0700</creation_ts>
          <short_desc>REGRESSION: Audio on Forvo will not play</short_desc>
          <delta_ts>2010-10-14 10:33:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>45188</dup_id>
          
          <bug_file_loc>http://forvo.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark">perrinhouse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eric.carlson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>287534</commentid>
    <comment_count>0</comment_count>
    <who name="Mark">perrinhouse</who>
    <bug_when>2010-09-30 07:08:36 -0700</bug_when>
    <thetext>Audio on Forvo, which uses HTML5 tags I think, will not play at all. With Safari 5.02 it plays eventually but may take 10s up to a minute or 2. On latest Chrome, it plays instantly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288656</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-10-01 23:10:10 -0700</bug_when>
    <thetext>My results:
Safari 5.0.2: sometimes works perfectly, other times crashes.

Thread 12 Crashed:
0   libSystem.B.dylib             	0x00007fff83219668 asl_close + 19
1   com.apple.SystemConfiguration 	0x00007fff834ceb25 __SCThreadSpecificDataFinalize + 30
2   libSystem.B.dylib             	0x00007fff83204b68 _pthread_tsd_cleanup + 82
3   libSystem.B.dylib             	0x00007fff8320481c _pthread_exit + 147
4   libSystem.B.dylib             	0x00007fff83204309 thread_start + 13

Local debug build of r68339: just doesn&apos;t work, nothing happens when I press a play button. Nothing is logged to console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294182</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2010-10-14 10:33:33 -0700</bug_when>
    <thetext>I haven&apos;t reproduced the crash yet, but the audio doesn&apos;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=&apos;http://&apos;+_SERVER_HOST+&apos;/player-mp3Handler.php?path=&apos;+path_mp3;
  var path_ogg=&apos;http://&apos;+_SERVER_HOST+&apos;/player-oggHandler.php?path=&apos;+path_ogg;
  var audioTagSupport = !!(document.createElement(&apos;audio&apos;).canPlayType);
  
  if (audioTagSupport) {
    myAudio = new Audio(&quot;&quot;); 
    canPlayMp3 = (&quot;no&quot; != myAudio.canPlayType(&quot;audio/mpeg&quot;)) &amp;&amp; (&quot;&quot; != myAudio.canPlayType(&quot;audio/mpeg&quot;));
    canPlayOgg = (&quot;no&quot; != myAudio.canPlayType(&quot;audio/ogg&quot;)) &amp;&amp; (&quot;&quot; != myAudio.canPlayType(&quot;audio/ogg&quot;));
  } else {
    canPlayMp3 = false;
    canPlayOgg = false;
  }

  if (navigator.userAgent.toLowerCase().indexOf(&apos;iphone&apos;)!=-1) {
    window.location.href=path_mp3;
    return false;
  }
  else if (canPlayMp3) {
    var html=&apos;&lt;audio autoplay=&quot;true&quot;&gt;&lt;source src=&quot;&apos;+ path_mp3 +&apos;&quot;&gt;&lt;/audio&gt;&apos;;
  }
  else if(canPlayOgg) {
    var html=&apos;&lt;audio autoplay=&quot;true&quot;&gt;&lt;source src=&quot;&apos;+ path_ogg +&apos;&quot;&gt;&lt;/audio&gt;&apos;;
  }
  else {
    var html=&apos;&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;&apos;+player_path+&apos;&quot; width=&quot;1&quot; height=&quot;1&quot;&gt;&apos;+
    &apos;&lt;param name=&quot;movie&quot; value=&quot;&apos;+player_path+&apos;&quot; /&gt;&apos;+
    &apos;&lt;param name=&quot;flashvars&quot; value=&quot;path=&apos;+path_mp3+&apos;&amp;amp;_SERVER_HTTP_HOST=&apos;+_SERVER_HOST+&apos;&quot; /&gt;&apos;+
    &apos;&lt;/object&gt;&apos;;
  }
  
  var container=document.getElementById(&apos;player&apos;);
  container.innerHTML=html;
  sumHit(id);
  return true;
}

*** This bug has been marked as a duplicate of bug 45188 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>