Skip to content

fix(call): recover call audio when autoplay is blocked - #18769

Draft
Antreesy wants to merge 1 commit into
mainfrom
fix/noid/context-play-resume
Draft

fix(call): recover call audio when autoplay is blocked#18769
Antreesy wants to merge 1 commit into
mainfrom
fix/noid/context-play-resume

Conversation

@Antreesy

Copy link
Copy Markdown
Contributor

β˜‘οΈ Resolves

  • Remote audio elements relied only on the "autoplay" attribute and never called play(), so when the browser blocked autoplay (e.g. a first-time guest with no media-engagement score) the participant heard no one and no error surfaced.
  • Play elements explicitly and, on NotAllowedError, retry playback on the next user gesture. In mixAudio mode this also resumes the AudioContext, which starts suspended on Safari until a user gesture.

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

πŸ–ŒοΈ UI Checklist

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • πŸ–ŒοΈ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • πŸ“— User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

- Remote audio elements relied only on the "autoplay" attribute
and never called play(), so when the browser blocked autoplay
(e.g. a first-time guest with no media-engagement score)
the participant heard no one and no error surfaced.
- Play elements explicitly and, on NotAllowedError, retry playback
on the next user gesture. In mixAudio mode this also resumes
the AudioContext, which starts suspended on Safari until a user gesture.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy added this to the β›… Next Major (35) milestone Jul 23, 2026
@Antreesy
Antreesy requested a review from danxuliu July 23, 2026 12:30
@Antreesy Antreesy self-assigned this Jul 23, 2026
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits browser: Safari bug feature: call πŸ“Ή Voice and video calls feature: frontend πŸ–ŒοΈ "Web UI" client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants