[Webkit-unassigned] [Bug 212125] Disconnecting a ScriptProcessorNode from AudioDestination permanently mutes the audio even after reconnecting the ScriptProcessorNode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 20 08:05:05 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=212125
--- Comment #8 from Khushpreet <khushpreetk363 at gmail.com> ---
Hi Luigi,
Yes, I was able to reproduce the issue here - https://www.staging2.waveplayer.info and console doesn't throw any error.
Just curious, if you are catching 'NotAllowedError' exception when resuming the audio?
Because I had the same issue on play because I was using the callback before playing mediaElement something like as follows:
mediaElementSource.context.resume().then(
function() {
mediaElementSource.mediaElement.play();
}
)
and since, play() also returns a promise, I wasn't able to actually hear the audio, (played on mute). I had come across an online resource which said that audioContext only needs to be resume once, also not to loose user gesture, So, I changed the code in my play() as below:
mediaElementSource.context.resume();
mediaElemntSource.mediaElement.play();
and resume the context in my Pause().
I have implemented the player same way and disconnect the scriptProcessor node. Play and pause works as expected.
If this is of any help again :)
Regards,
Khushpreet
--
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/20200720/0159b54e/attachment.htm>
More information about the webkit-unassigned
mailing list