Backport pull request #5617 from jellyfin-web/release-10.9.z

Allow VideoStreamCopy for remote source fallback

Original-merge: 40e7dc90079cd3e2065cb9170175091f0e04a823

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
gnattu
2024-06-01 18:42:03 -04:00
committed by Joshua M. Boniface
parent da80ba85ee
commit 39fa14a6f8
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -6,6 +6,6 @@ import type { MediaSourceInfo } from '@jellyfin/sdk/lib/generated-client';
* @returns _true_ if the media source is an HLS stream, _false_ otherwise.
*/
export function isHls(mediaSource: MediaSourceInfo|null|undefined): boolean {
const protocol = mediaSource?.TranscodingSubProtocol || mediaSource?.Container;
return protocol?.toUpperCase() === 'HLS';
return mediaSource?.TranscodingSubProtocol?.toUpperCase() === 'HLS'
|| mediaSource?.Container?.toUpperCase() === 'HLS';
}