feat(mpv): add --audiounit-skip-session-management patch - #52
Merged
Conversation
danielwilliamson
added a commit
to Insight-Timer/libmpv-darwin-build
that referenced
this pull request
Jun 11, 2026
Adds the AO-scoped audiounit-skip-session-management mpv option from media-kit#52, which is the build-side half of media-kit/media-kit#1419. Without this, mpv's ao_audiounit driver unconditionally: - sets AVAudioSession category to Playback+MixWithOthers on init - calls setActive:YES on init - calls setActive:NO on uninit AVAudioSession is process-wide on iOS, so these calls fight any other component that owns the session (e.g. audio_service). The visible symptom in the spike: audio plays in background but the lock-screen and Control Center now-playing HUD never appear because audio_service's session configuration gets clobbered after AudioService.init. With this option (and the Dart-side change to pass it as audiounit-skip-session-management=yes), the embedder can keep full ownership of the session and the HUD wires up normally. Patch applies AFTER mpv-mix-with-others.patch — context overlap on the setCategory call. Verified line numbers match v0.36.0.
alexmercerind
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see media-kit/media-kit#1419