feat: add technical stream info overlay for MPV player

This commit is contained in:
Fredrik Burmester
2026-01-12 09:05:15 +01:00
parent 3da4b42ca3
commit b0bb6c6c9a
14 changed files with 586 additions and 3 deletions

View File

@@ -173,6 +173,11 @@ public class MpvPlayerModule: Module {
return view.isZoomedToFill()
}
// Technical info function
AsyncFunction("getTechnicalInfo") { (view: MpvPlayerView) -> [String: Any] in
return view.getTechnicalInfo()
}
// Defines events that the view can send to JavaScript
Events("onLoad", "onPlaybackStateChange", "onProgress", "onError", "onTracksReady")
}