1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Use stream compatibility flag

Keep old logic for backward compatibility.
This commit is contained in:
Dmitry Lyzo 2024-02-28 19:28:32 +03:00
parent 2aabb13640
commit d68ef36465
2 changed files with 8 additions and 0 deletions

View file

@ -1300,6 +1300,10 @@ class PlaybackManager {
return false;
}
if (mediaStream.SupportsDirectPlay != null) {
return mediaStream.SupportsDirectPlay;
}
const container = mediaSource.Container.toLowerCase();
const codec = (mediaStream.Codec || '').toLowerCase();

View file

@ -726,6 +726,10 @@ export class HtmlVideoPlayer {
* @private
*/
isAudioStreamSupported(stream, deviceProfile, container) {
if (stream.SupportsDirectPlay != null) {
return stream.SupportsDirectPlay;
}
const codec = (stream.Codec || '').toLowerCase();
if (!codec) {