[Webkit-unassigned] [Bug 230902] REGRESSION(Safari 15 - iOS15): [WebRTC] MediaStreamTack audio volume too low
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 24 22:03:28 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230902
Varun D <varundabke at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |varundabke at gmail.com
--- Comment #28 from Varun D <varundabke at gmail.com> ---
(In reply to Brendan Del Rosario from comment #19)
> (In reply to neo from comment #18)
> > (In reply to Phong Le from comment #16)
> > > Could you guide about how to use AudioContext to play this remote stream? I
> > > researched and when using AudioContext to play, we must attach with an audio
> > > element. Thanks
> >
> > i tested iOS 15. (wkWebview)
> >
> > // audio stream example
> > function connectToSpeaker(remoteAudioStream: MediaStream, gain: number) {
> > const context: AudioContext = window.AudioContext ||
> > window.webkitAudioContext;
> > const audioNode = context.createMediaStreamSource(remoteAudioStream);
> > const gainNode: GainNode = context.createGain();
> > // some device volume too low ex) iPad
> > gainNode.gain.value = gain;
> > audioNode.connect(gainNode);
> > gainNode.connect(context.destination);
> > }
> >
> > and i'm not append video(with audio) element to document body.
> > i use canvas.
>
> This workaround allowed us(OP/Les, Mike & Brendan) to be able to hear the
> remote audio at an appropriate level. We set our gain value to 10 for now
> and will tweak as needed (increasing too much can cause clipping). The
> quality of audio is slightly lower than that of iOS 14 but for the time
> being it is a workaround that gets us closer to previous functionality.
> Thank you very much for posting this!
Can this work if we have many peer's audio stream coming in?
Also, should the first line of this function be
const context = new (window.AudioContext || window.webkitAudioContext)();
Otherwise, createMediaStreamsource fails.
--
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/20211025/b74c0d47/attachment.htm>
More information about the webkit-unassigned
mailing list