mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge d68ef36465
into 7d84185d0e
This commit is contained in:
commit
6d5e2eab4d
2 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue