This commit is contained in:
Alex Kim
2025-12-07 02:22:09 +11:00
parent 7135be198a
commit 074222050a
5 changed files with 48 additions and 27 deletions

View File

@@ -558,6 +558,8 @@ final class MPVSoftwareRenderer {
}
private func createPixelBufferPool(width: Int, height: Int) {
guard width > 0, height > 0 else { return }
let pixelFormat = kCVPixelFormatType_32BGRA
let attrs: [CFString: Any] = [

View File

@@ -107,6 +107,10 @@ class MpvPlayerView: ExpoView {
}
func loadVideo(config: VideoLoadConfig) {
// Skip reload if same URL is already playing
if currentURL == config.url {
return
}
currentURL = config.url
let preset = PlayerPreset(