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.
- package/android/src/main/java/expo/modules/libvlcplayer/LibVlcPlayerView.kt +1 -1
- package/android/src/main/java/expo/modules/libvlcplayer/constants/MediaPlayerConstants.kt +3 -3
- package/android/src/main/java/expo/modules/libvlcplayer/managers/MediaPlayerManager.kt +1 -1
- package/ios/Constants/MediaPlayerConstants.swift +2 -2
- package/ios/LibVlcPlayerView.swift +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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 =
|
|
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 =
|
|
21
|
-
const val MAX_RETRY_COUNT: Int =
|
|
20
|
+
const val RETRY_DELAY_MS: Double = 300.0
|
|
21
|
+
const val MAX_RETRY_COUNT: Int = 3
|
|
22
22
|
}
|
|
@@ -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 =
|
|
10
|
-
static let maxRetryCount: Int =
|
|
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
|
|
560
|
+
let isLastAttempt = retry > maxRetries
|
|
561
561
|
|
|
562
562
|
if block(isLastAttempt) || isLastAttempt { return }
|
|
563
563
|
|