fix: bug in playback speed

This commit is contained in:
Fredrik Burmester
2026-01-03 19:49:39 +01:00
parent 4fb3fb195c
commit 4ae3c44d02
4 changed files with 20 additions and 0 deletions

View File

@@ -433,6 +433,13 @@ class VlcPlayerView: ExpoView {
}
}
@objc func setRate(_ rate: Float) {
DispatchQueue.main.async {
self.mediaPlayer?.rate = rate
print("Set playback rate: \(rate)")
}
}
@objc func setNowPlayingMetadata(_ metadata: [String: String]) {
// Cancel any existing artwork download to prevent race conditions
artworkDownloadTask?.cancel()