expo-libvlc-player 7.0.14 → 7.0.15

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.
@@ -725,7 +725,7 @@ class LibVlcPlayerView(
725
725
  delay: Double = MediaPlayerConstants.RETRY_DELAY_MS,
726
726
  block: (isLastAttempt: Boolean) -> Boolean,
727
727
  ) {
728
- val isLastAttempt = retry >= maxRetries
728
+ val isLastAttempt = retry > maxRetries
729
729
 
730
730
  if (block(isLastAttempt) || isLastAttempt) return
731
731
 
@@ -15,8 +15,8 @@ object MediaPlayerConstants {
15
15
  const val EXTRA_CONTROL_FORWARD: Int = 4
16
16
  const val SEEK_STEP_MS: Long = 10_000L
17
17
 
18
- const val COROUTINE_DELAY_MS: Long = 1_000L
18
+ const val COROUTINE_DELAY_MS: Long = 750L
19
19
  const val EXP_DELAY_MULTIPLIER: Double = 1.5
20
- const val RETRY_DELAY_MS: Double = 200.0
21
- const val MAX_RETRY_COUNT: Int = 5
20
+ const val RETRY_DELAY_MS: Double = 300.0
21
+ const val MAX_RETRY_COUNT: Int = 3
22
22
  }
@@ -51,7 +51,7 @@ object MediaPlayerManager {
51
51
  fun onModuleBackground() {
52
52
  expoViews.forEach { view ->
53
53
  view.onBackground(Unit)
54
- view.pauseIf()
54
+ view.pauseIf(!view.pictureInPicture)
55
55
  view.isInBackground = true
56
56
  }
57
57
  }
@@ -6,6 +6,6 @@ enum MediaPlayerConstants {
6
6
  static let maxPlayerVolume: Int = 100
7
7
 
8
8
  static let expDelayMultiplier: Double = 1.5
9
- static let retryDelayMs: Double = 200.0
10
- static let maxRetryCount: Int = 5
9
+ static let retryDelayMs: Double = 300.0
10
+ static let maxRetryCount: Int = 3
11
11
  }
@@ -557,7 +557,7 @@ class LibVlcPlayerView: ExpoView {
557
557
  delay: Double = MediaPlayerConstants.retryDelayMs,
558
558
  block: @escaping (_ isLastAttempt: Bool) -> Bool
559
559
  ) {
560
- let isLastAttempt = retry >= maxRetries
560
+ let isLastAttempt = retry > maxRetries
561
561
 
562
562
  if block(isLastAttempt) || isLastAttempt { return }
563
563
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "7.0.14",
3
+ "version": "7.0.15",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",