From d07b82a21ba15ee8a86cac0a85c99e400d975b73 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 29 May 2022 16:39:00 +0200 Subject: [PATCH] Don't push MPV to play HLS on changing backends It takes longer to load than WEBM --- Model/Player/PlayerModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Player/PlayerModel.swift b/Model/Player/PlayerModel.swift index 3ab50f25..7514709a 100644 --- a/Model/Player/PlayerModel.swift +++ b/Model/Player/PlayerModel.swift @@ -374,7 +374,7 @@ final class PlayerModel: ObservableObject { return } - if !backend.canPlay(stream) { + if !backend.canPlay(stream) || (to == .mpv && !stream.hlsURL.isNil) { guard let preferredStream = preferredStream(availableStreams) else { return }