From 8bab8549866d78e613f9f28d344bab3f2cbd8b05 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 }