mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix remux detection for pure audio session
This commit is contained in:
parent
d770e40130
commit
ae02d972c4
1 changed files with 1 additions and 2 deletions
|
@ -2,8 +2,7 @@ export function getDisplayPlayMethod(session) {
|
||||||
if (!session.NowPlayingItem) {
|
if (!session.NowPlayingItem) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if ((!session.TranscodingInfo?.VideoCodec && session.TranscodingInfo.IsAudioDirect) || (session.TranscodingInfo?.IsVideoDirect && session.TranscodingInfo.IsAudioDirect)) {
|
||||||
if (session.TranscodingInfo?.IsVideoDirect && session.TranscodingInfo.IsAudioDirect) {
|
|
||||||
return 'Remux';
|
return 'Remux';
|
||||||
} else if (session.TranscodingInfo?.IsVideoDirect) {
|
} else if (session.TranscodingInfo?.IsVideoDirect) {
|
||||||
return 'DirectStream';
|
return 'DirectStream';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue