Skip to content

Fix iOS WebContent suspension with AVAudioSession activation#296

Merged
capy-ai[bot] merged 1 commit intokief5555/iosfrom
capy/ios-avaudio-session-fix
Apr 14, 2026
Merged

Fix iOS WebContent suspension with AVAudioSession activation#296
capy-ai[bot] merged 1 commit intokief5555/iosfrom
capy/ios-avaudio-session-fix

Conversation

@Kief5555
Copy link
Copy Markdown
Collaborator

@Kief5555 Kief5555 commented Apr 14, 2026

This PR fixes WebContent process suspension during iOS streaming by activating an OS-level AVAudioSession when StreamerView appears. The native .playback category prevents iOS jetsam from killing WebContent during the WebRTC negotiation window, which JS-side video.play() cannot do without com.apple.developer.web-browser-engine.webcontent entitlements.

StreamerView.swift:

  • Import: Add import AVFoundation
  • Lifecycle: Add .onAppear to activate AVAudioSession with .playback / .moviePlayback + .mixWithOthers
  • Cleanup: Add .onDisappear to deactivate session with .notifyOthersOnDeactivation

Open in Capy OPEN-18 · Sonnet 4.6

@Kief5555 Kief5555 added the capy Generated by capy.ai label Apr 14, 2026 — with Capy AI
@capy-ai capy-ai Bot merged commit 2fea8f1 into kief5555/ios Apr 14, 2026
@capy-ai capy-ai Bot deleted the capy/ios-avaudio-session-fix branch April 14, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capy Generated by capy.ai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant