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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17345</bug_id>
          
          <creation_ts>2012-06-05 11:37:40 +0000</creation_ts>
          <short_desc>Access to individual AudioTracks</short_desc>
          <delta_ts>2014-10-28 17:17:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>AudioWG</product>
          <component>Web Audio API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>TBD</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>crogers</cc>
    
    <cc>olivier.thereaux</cc>
    
    <cc>philipj</cc>
    
    <cc>public-audio</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68656</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-05 11:37:40 +0000</bug_when>
    <thetext>Audio-ISSUE-54 (MediaElementAudioSourceNode): MediaElementAudioSourceNode [Web Audio API]

http://www.w3.org/2011/audio/track/issues/54

Raised by: Philip Jägenstedt
On product: Web Audio API

HTMLMediaElement is integrated into Web Audio API using the MediaElementAudioSourceNode interface and createMediaElementSource. This looks like an unnecessarily complicated way of making the connection.

Suggestion:

Extend the HTML AudioTrack interface [1] with an &quot;AudioSourceNode node&quot; member. This allows us to use multiple audio tracks from a single HTMLMediaElement.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#audiotrack</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76439</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2012-10-16 20:19:21 +0000</bug_when>
    <thetext>Ian Hickson and I had discussed the trade-off of these two approaches a while back.  He suggested that with the current approach (with create() method) that we can keep the two APIs well-factored, and not need to change the HTMLMediaElement spec.

Also, I don&apos;t think that the create() approach is very complex at all.  It&apos;s true that it adds one more line of JS, but this is a very small cost and it&apos;s consistent with other source nodes such as createBufferSource().

We&apos;ve already had plenty of people using this API, and nobody has complained about this particular aspect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77030</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-10-24 09:27:32 +0000</bug_when>
    <thetext>Philip, any thought given the recent changes in http://dvcs.w3.org/hg/audio/rev/9224fb26e77d ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77031</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-10-24 09:42:37 +0000</bug_when>
    <thetext>That change was in response to Bug 17346 and looks fine to me.

As for createMediaElementSource() vs a property on AudioTrack, I&apos;m fine with keeping a create method for consistency and API separation.

What remains unresolved is the issue of multi-track resources. If instead of a createMediaElementSource we had a createAudioTrackSource, the issue of what to do with media elements without any audio goes away, and it&apos;s also possible to process the audio streams separately. Should I file a new bug for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77032</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-10-24 09:47:41 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; What remains unresolved is the issue of multi-track resources. If instead of
&gt; a createMediaElementSource we had a createAudioTrackSource, the issue of
&gt; what to do with media elements without any audio goes away, and it&apos;s also
&gt; possible to process the audio streams separately. Should I file a new bug
&gt; for this?

Makes sense. Let&apos;s keep it here - care to change/clarify the issue name? (If you can... not sure what the typical Bugzilla rights are these days)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77035</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-10-24 11:14:48 +0000</bug_when>
    <thetext>OK, reopened and changed name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113898</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:14:13 +0000</bug_when>
    <thetext>Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114044</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:17:05 +0000</bug_when>
    <thetext>Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>