1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
Dmitry Lyzo 2025-03-30 11:01:13 -04:00 committed by GitHub
commit 6d5e2eab4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

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

View file

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