mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-31 02:58:28 +01:00
wip: subtitles and onVideoLoad stuff
This commit is contained in:
@@ -30,8 +30,9 @@ public class VlcPlayerModule: Module {
|
||||
|
||||
Events(
|
||||
"onPlaybackStateChanged",
|
||||
"onVideoLoadStart",
|
||||
"onVideoStateChange",
|
||||
"onVideoLoadStart",
|
||||
"onVideoLoadEnd",
|
||||
"onVideoProgress"
|
||||
)
|
||||
|
||||
@@ -74,6 +75,11 @@ public class VlcPlayerModule: Module {
|
||||
AsyncFunction("getVideoCropGeometry") { (view: VlcPlayerView) -> String? in
|
||||
return view.getVideoCropGeometry()
|
||||
}
|
||||
|
||||
AsyncFunction("setSubtitleURL") { (view: VlcPlayerView, url: String) in
|
||||
view.setSubtitleURL(url)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user