expo-libvlc-player 7.0.5 → 7.0.6
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/ios/LibVlcPlayerView.swift +11 -4
- package/package.json +1 -1
|
@@ -223,11 +223,18 @@ class LibVlcPlayerView: ExpoView {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
if volume != MediaPlayerConstants.maxPlayerVolume || mute {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
// Audio instance not available, try again
|
|
227
|
+
retryUntil { [weak self] isLastAttempt in
|
|
228
|
+
guard let self else { return true }
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
let newVolume = mute ?
|
|
231
|
+
MediaPlayerConstants.minPlayerVolume :
|
|
232
|
+
volume
|
|
233
|
+
|
|
234
|
+
player.audio?.volume = Int32(newVolume)
|
|
235
|
+
|
|
236
|
+
return isLastAttempt
|
|
237
|
+
}
|
|
231
238
|
}
|
|
232
239
|
|
|
233
240
|
time = MediaPlayerConstants.defaultPlayerTime
|