<?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>198284</bug_id>
          
          <creation_ts>2019-05-28 00:17:25 -0700</creation_ts>
          <short_desc>Web Audio fed into local &lt;video&gt; via MediaStreamAudioDestinationNode does not play on Mac</short_desc>
          <delta_ts>2020-05-29 11:12:08 -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>Web Audio</component>
          <version>Safari 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brooke Vibber">bvibber</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>tobor68</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1539494</commentid>
    <comment_count>0</comment_count>
    <who name="Brooke Vibber">bvibber</who>
    <bug_when>2019-05-28 00:17:25 -0700</bug_when>
    <thetext>Web Audio such as an oscillator or script processor node piped into a local &lt;video&gt; through MediaStraemAudioDestinationNode doesn&apos;t play in Safari on Mac, but does work on iOS and the iOS Simulator.

Tested Safari 12.1.1 and Technology Preview on macOS 10.14 and 10.13 (no audio), while it works on iOS 12.4.1 and the iOS 12.2 Simulator tested locally.


Test case:

https://jsfiddle.net/0uLg4j3w/

----------
&lt;div&gt;
  &lt;button id=start&gt;Start&lt;/button&gt;
&lt;div&gt;
  &lt;video id=sink playsinline controls width=320 height=240&gt;&lt;/video&gt;
&lt;/div&gt;
----------
start.addEventListener(&apos;click&apos;, function() {
  start.disabled = true;
	var context = new (window.AudioContext || window.webkitAudioContext)();
  var dest = context.createMediaStreamDestination();
  var src = context.createOscillator();
  src.connect(dest);
  src.start();
  sink.srcObject = dest.stream;
  sink.play();
});
----------


Expected results: tone plays
Actual results: no tone plays</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1540644</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-30 22:19:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/51290997&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657348</commentid>
    <comment_count>2</comment_count>
    <who name="">tobor68</who>
    <bug_when>2020-05-29 11:12:08 -0700</bug_when>
    <thetext>I&apos;ve found this behaviour in iTunes 12.9.5 while playing local media as well as streaming iTunes extras, and webkit based browsers to bluetooth speakers.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>