@5stones/react-native-audio-browser 0.1.3 → 0.1.4
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.
|
@@ -545,11 +545,18 @@ public class HybridAudioBrowser: HybridAudioBrowserSpec, @unchecked Sendable {
|
|
|
545
545
|
|
|
546
546
|
public func updateOptions(options: NativeUpdateOptions) {
|
|
547
547
|
onMainActor {
|
|
548
|
+
let previousInterval = playerOptions.progressUpdateEventInterval
|
|
549
|
+
|
|
548
550
|
// Update stored options
|
|
549
551
|
playerOptions.update(from: options)
|
|
550
552
|
|
|
551
553
|
// Apply remote commands to player
|
|
552
554
|
applyRemoteCommands()
|
|
555
|
+
|
|
556
|
+
// Apply progress update interval if changed
|
|
557
|
+
if playerOptions.progressUpdateEventInterval != previousInterval {
|
|
558
|
+
player?.setProgressUpdateInterval(playerOptions.progressUpdateEventInterval)
|
|
559
|
+
}
|
|
553
560
|
}
|
|
554
561
|
}
|
|
555
562
|
|