mirror of
https://github.com/yattee/yattee.git
synced 2025-01-10 11:30:32 +05:30
Don't push MPV to play HLS on changing backends
It takes longer to load than WEBM
This commit is contained in:
parent
ccc1cc89ad
commit
4f6e0e2a3d
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user