mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-20 19:12:23 +00:00
Working
This commit is contained in:
@@ -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] = [
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user