mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -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
|
// Only used for audio
|
||||||
playMethod = 'Transcode';
|
playMethod = 'Transcode';
|
||||||
mediaUrl = mediaSource.StreamUrl;
|
mediaUrl = mediaSource.StreamUrl;
|
||||||
} else if (mediaSource.SupportsDirectStream) {
|
} else if (mediaSource.SupportsDirectPlay || mediaSource.SupportsDirectStream) {
|
||||||
directOptions = {
|
directOptions = {
|
||||||
Static: true,
|
Static: true,
|
||||||
mediaSourceId: mediaSource.Id,
|
mediaSourceId: mediaSource.Id,
|
||||||
@ -2500,7 +2500,7 @@ class PlaybackManager {
|
|||||||
const prefix = type === 'Video' ? 'Videos' : 'Audio';
|
const prefix = type === 'Video' ? 'Videos' : 'Audio';
|
||||||
mediaUrl = apiClient.getUrl(prefix + '/' + item.Id + '/stream.' + mediaSourceContainer, directOptions);
|
mediaUrl = apiClient.getUrl(prefix + '/' + item.Id + '/stream.' + mediaSourceContainer, directOptions);
|
||||||
|
|
||||||
playMethod = 'DirectStream';
|
playMethod = mediaSource.SupportsDirectPlay ? 'DirectPlay' : 'DirectStream';
|
||||||
} else if (mediaSource.SupportsTranscoding) {
|
} else if (mediaSource.SupportsTranscoding) {
|
||||||
mediaUrl = apiClient.getUrl(mediaSource.TranscodingUrl);
|
mediaUrl = apiClient.getUrl(mediaSource.TranscodingUrl);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user