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:
parent
2aabb13640
commit
d68ef36465
2 changed files with 8 additions and 0 deletions
|
@ -1300,6 +1300,10 @@ class PlaybackManager {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mediaStream.SupportsDirectPlay != null) {
|
||||||
|
return mediaStream.SupportsDirectPlay;
|
||||||
|
}
|
||||||
|
|
||||||
const container = mediaSource.Container.toLowerCase();
|
const container = mediaSource.Container.toLowerCase();
|
||||||
const codec = (mediaStream.Codec || '').toLowerCase();
|
const codec = (mediaStream.Codec || '').toLowerCase();
|
||||||
|
|
||||||
|
|
|
@ -726,6 +726,10 @@ export class HtmlVideoPlayer {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
isAudioStreamSupported(stream, deviceProfile, container) {
|
isAudioStreamSupported(stream, deviceProfile, container) {
|
||||||
|
if (stream.SupportsDirectPlay != null) {
|
||||||
|
return stream.SupportsDirectPlay;
|
||||||
|
}
|
||||||
|
|
||||||
const codec = (stream.Codec || '').toLowerCase();
|
const codec = (stream.Codec || '').toLowerCase();
|
||||||
|
|
||||||
if (!codec) {
|
if (!codec) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue