mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-01 19:48:28 +01:00
feat: add technical stream info overlay for MPV player
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user