mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Fix direct play logic when direct stream is disabled
This commit is contained in:
parent
e33a589a27
commit
ac45163e4c
@ -2481,7 +2481,7 @@ class PlaybackManager {
|
||||
// Only used for audio
|
||||
playMethod = 'Transcode';
|
||||
mediaUrl = mediaSource.StreamUrl;
|
||||
} else if (mediaSource.SupportsDirectStream) {
|
||||
} else if (mediaSource.SupportsDirectPlay || mediaSource.SupportsDirectStream) {
|
||||
directOptions = {
|
||||
Static: true,
|
||||
mediaSourceId: mediaSource.Id,
|
||||
@ -2500,7 +2500,7 @@ class PlaybackManager {
|
||||
const prefix = type === 'Video' ? 'Videos' : 'Audio';
|
||||
mediaUrl = apiClient.getUrl(prefix + '/' + item.Id + '/stream.' + mediaSourceContainer, directOptions);
|
||||
|
||||
playMethod = 'DirectStream';
|
||||
playMethod = mediaSource.SupportsDirectPlay ? 'DirectPlay' : 'DirectStream';
|
||||
} else if (mediaSource.SupportsTranscoding) {
|
||||
mediaUrl = apiClient.getUrl(mediaSource.TranscodingUrl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user