expo-libvlc-player 7.0.0 → 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.
@@ -918,7 +918,6 @@ private fun MutableList<String>.toggleStartPausedOption(autoplay: Boolean) {
918
918
  val options =
919
919
  setOf(
920
920
  "--start-paused",
921
- "-start-paused",
922
921
  ":start-paused",
923
922
  )
924
923
 
@@ -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(options: args)
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "husky": "^9.1.7",
46
46
  "lint-staged": "^16.3.2",
47
47
  "prettier": "^3.8.1",
48
- "react-native": "0.83.4",
48
+ "react-native": "0.83.6",
49
49
  "typescript": "^5.9.3"
50
50
  },
51
51
  "peerDependencies": {
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "extends": "expo-module-scripts/tsconfig.plugin",
3
3
  "compilerOptions": {
4
- "outDir": "build",
5
- "rootDir": "src"
4
+ "rootDir": "src",
5
+ "outDir": "build"
6
6
  },
7
- "include": ["./src"],
8
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
7
+ "include": ["./src"]
9
8
  }