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.
@@ -223,11 +223,18 @@ class LibVlcPlayerView: ExpoView {
223
223
  }
224
224
 
225
225
  if volume != MediaPlayerConstants.maxPlayerVolume || mute {
226
- let newVolume = mute ?
227
- MediaPlayerConstants.minPlayerVolume :
228
- volume
226
+ // Audio instance not available, try again
227
+ retryUntil { [weak self] isLastAttempt in
228
+ guard let self else { return true }
229
229
 
230
- player.audio?.volume = Int32(newVolume)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libvlc-player",
3
- "version": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "description": "LibVLC Player for Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",