[Webkit-unassigned] [Bug 203382] New: Audio Track ends when disabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 24 13:31:27 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=203382

            Bug ID: 203382
           Summary: Audio Track ends when disabled
           Product: WebKit
           Version: Safari 13
          Hardware: iPhone / iPad
                OS: iOS 13
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: makarand at gmail.com

Created attachment 381840

  --> https://bugs.webkit.org/attachment.cgi?id=381840&action=review

this html helps repro the issue

On Safari on iOS 13: 

Step 1: Call getUserMedia({audio: true}) to obtain a media stream with audio track
Step 2: Attach the stream to audio element
Step 3: disable the audio track by calling audioTrack.enabled = false
Step 4: Switch to another app for few seconds. 

Step 5: 
Observe: Notice that Audio Track goes into readyState=ended. And it can not be played anymore.
Expected: The audio track be able to be played once enabled.


Once we get into this situation, Now notice that even w/o switching to another app, audio track immediately ends when disabled.

Step 6: Call getUserMedia({audio: true}) to obtain a media stream with audio track
Step 7: Attach the stream to audio element
Step 8: disable the audio track by calling audioTrack.enabled = false

Step 9: 
Observer: track goes into readyState=ended state.
Expected: track should just go into disabled state, and not end.

Following jsfiddle makes it easy to see the repro in action:

https://jsfiddle.net/makarandp/3c29y40q/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191024/81f81516/attachment.htm>


More information about the webkit-unassigned mailing list