[Webkit-unassigned] [Bug 230902] REGRESSION(Safari 15 - iOS15): [WebRTC] MediaStreamTack audio volume too low
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 19 23:25:53 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230902
--- Comment #23 from Phong Le <lhphong09t2 at gmail.com> ---
(In reply to neo from comment #21)
> (In reply to Phong Le from comment #20)
> > (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.
> >
> > Wow, it works :) Thanks for sharing. Before, I tested this one on MacOS
> > Safari but not work. Only work on iOS device :). I set gain 4 to iPhone and
> > 2 to iPad. The <audio> and <video> tag (play file by url not remote stream)
> > is still very low volume
>
> still very low volume <== it'll be ok if use audio context for playing audio
> file.
No. (In reply to neo from comment #21)
> (In reply to Phong Le from comment #20)
> > (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.
> >
> > Wow, it works :) Thanks for sharing. Before, I tested this one on MacOS
> > Safari but not work. Only work on iOS device :). I set gain 4 to iPhone and
> > 2 to iPad. The <audio> and <video> tag (play file by url not remote stream)
> > is still very low volume
>
> still very low volume <== it'll be ok if use audio context for playing audio
> file.
Yup. But I need to use media element tag to play. However, createMediaElementSource on ios safari hadn't worked for long time
--
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/20211020/7323f9d8/attachment.htm>
More information about the webkit-unassigned
mailing list