feat: Re-add native apple controls for mpv (#1411)

This commit is contained in:
Alex
2026-02-19 17:38:01 +11:00
committed by GitHub
parent 8a782fb0c9
commit 9f9d949891
7 changed files with 361 additions and 9 deletions

View File

@@ -43,6 +43,12 @@ class MpvPlayerModule : Module() {
view.loadVideo(config)
}
// Now Playing metadata for media controls (iOS-only, no-op on Android)
// Android handles media session differently via MediaSessionCompat
Prop("nowPlayingMetadata") { _: MpvPlayerView, _: Map<String, String>? ->
// No-op on Android - media session integration would require MediaSessionCompat
}
// Async function to play video
AsyncFunction("play") { view: MpvPlayerView ->
view.play()