| Summary: | [Macos, ios, ipados] Webrtc new audio on an inactive tab not playing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | ivan.zahrodskyi | ||||
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | Kongpheng.Nanthavongsa, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 17 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
This might be an autoplay issue. To remove the autoplay restriction, you might want to call play() as part of a user gesture. Or if user is capturing. What happens in your example if the JS is calling play() when the start button is triggered? (In reply to youenn fablet from comment #2) > This might be an autoplay issue. > To remove the autoplay restriction, you might want to call play() as part of > a user gesture. Or if user is capturing. > > What happens in your example if the JS is calling play() when the start > button is triggered? still no audio. But anyway in real world scenario where many participants joins a call we a creating video/audio elements dynamically, so how I can remove autoplay restriction in that case. Also I tried to set "Allow All Auto-Play" in safari settings and it doesn't helped. |
Created attachment 468147 [details] sample to try this problem We noticed problem with audio during webrtc call on inactive tab. Situation: - User is in the webrtc active call from safari. But this user is doing something on another tab (e.q. shares that tab, reads some information or whatever) - another user joins that call, so new audio track is received but there no any way to play that track (because tab is inactive) I created little sample to reproduce this. - open example - press start - open another tab and wait (near 10 seconds) result: - no audio this works fine in chrome but not in safari. Issue is valid for macos and ios. I'm wondering is it some kind of safari limitation? or this is a bug?