expo-libvlc-player 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,6 +75,7 @@ class LibVlcPlayerView: ExpoView {
|
|
|
75
75
|
var args = options
|
|
76
76
|
args.toggleStartPausedOption(autoplay)
|
|
77
77
|
|
|
78
|
+
let library = VLCLibrary(options: args)
|
|
78
79
|
var drawable: MediaPlayerDrawable
|
|
79
80
|
|
|
80
81
|
if pictureInPicture {
|
|
@@ -85,12 +86,11 @@ class LibVlcPlayerView: ExpoView {
|
|
|
85
86
|
drawable = playerDrawable
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
mediaPlayer = VLCMediaPlayer(
|
|
89
|
+
mediaPlayer = VLCMediaPlayer(library: library)
|
|
89
90
|
mediaPlayer!.drawable = drawable
|
|
90
91
|
mediaPlayer!.delegate = self
|
|
91
92
|
setupPlayer()
|
|
92
93
|
|
|
93
|
-
let library = mediaPlayer!.libraryInstance
|
|
94
94
|
vlcDialog = VLCDialogProvider(library: library, customUI: dialogCustomUI)
|
|
95
95
|
vlcDialog!.customRenderer = self
|
|
96
96
|
|
|
@@ -773,7 +773,6 @@ private extension [String] {
|
|
|
773
773
|
mutating func toggleStartPausedOption(_ autoplay: Bool) {
|
|
774
774
|
let options = [
|
|
775
775
|
"--start-paused",
|
|
776
|
-
"-start-paused",
|
|
777
776
|
":start-paused",
|
|
778
777
|
]
|
|
779
778
|
|