Don't push MPV to play HLS on changing backends

It takes longer to load than WEBM
This commit is contained in:
Arkadiusz Fal 2022-05-29 16:39:00 +02:00
parent 680baf3f39
commit 8bab854986

View File

@ -374,7 +374,7 @@ final class PlayerModel: ObservableObject {
return return
} }
if !backend.canPlay(stream) { if !backend.canPlay(stream) || (to == .mpv && !stream.hlsURL.isNil) {
guard let preferredStream = preferredStream(availableStreams) else { guard let preferredStream = preferredStream(availableStreams) else {
return return
} }