expo-libvlc-player 7.0.22 → 7.0.24

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img alt="VLC icon" src="https://images.videolan.org/images/VLC-IconSmall.png">
2
+ <img alt="VLC icon" src="example/assets/vlc.png">
3
3
  </p>
4
4
 
5
5
  <h1 align="center">LibVLC Player for Expo</h1>
@@ -293,9 +293,9 @@ The current workaround attaches the View back but this causes a brief black scre
293
293
 
294
294
  https://code.videolan.org/videolan/vlc-android/-/issues/1495
295
295
 
296
- On iOS, the `VLCKit` player deselects the current video track after switching screens.
296
+ On iOS, the `VLCKit` player loses the current video track after pausing in the background.
297
297
 
298
- The current workaround selects the previous video track but this causes a brief black screen.
298
+ The current workaround restores the selected video track but this causes a brief black screen.
299
299
 
300
300
  https://code.videolan.org/videolan/VLCKit/-/issues/743
301
301
 
@@ -438,9 +438,15 @@ class LibVlcPlayerView: ExpoView {
438
438
  else { return }
439
439
 
440
440
  player.pause()
441
+
441
442
  videoTrack.isSelected = false
442
443
  videoTrack.isSelectedExclusively = true
443
- DispatchQueue.main.async { player.time = VLCTime(int: player.time.intValue) }
444
+
445
+ DispatchQueue.main.async {
446
+ if player.isSeekable {
447
+ player.time = VLCTime(int: player.time.intValue)
448
+ }
449
+ }
444
450
  }
445
451
 
446
452
  func stop() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "7.0.22",
3
+ "version": "7.0.24",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",