Fixed issue for IOS and android

This commit is contained in:
Alex Kim
2024-12-07 05:41:46 +11:00
parent 24320541c7
commit 38445c6959
3 changed files with 51 additions and 9 deletions

View File

@@ -5,7 +5,9 @@ public class VlcPlayerModule: Module {
Name("VlcPlayer")
View(VlcPlayerView.self) {
Prop("source") { (view: VlcPlayerView, source: [String: Any]) in
view.setSource(source)
if !view.hasSource {
view.setSource(source)
}
}
Prop("paused") { (view: VlcPlayerView, paused: Bool) in