mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #1161 - Emby offers trancoding while having Transcode disabled
This commit is contained in:
parent
d8b5fd5867
commit
1a97ba078c
2 changed files with 9 additions and 4 deletions
|
@ -620,8 +620,6 @@
|
|||
|
||||
AppSettings.maxStreamingBitrate(bitrate);
|
||||
|
||||
$('.videoQualityPopup').popup('close');
|
||||
|
||||
self.changeStream(self.getCurrentTicks(), {
|
||||
Bitrate: bitrate
|
||||
});
|
||||
|
|
|
@ -605,6 +605,12 @@
|
|||
self.currentMediaSource = result.MediaSources[0];
|
||||
var streamInfo = self.createStreamInfo(self.currentItem.MediaType, self.currentItem, self.currentMediaSource, ticks);
|
||||
|
||||
if (!streamInfo.url) {
|
||||
MediaController.showPlaybackInfoErrorMessage('NoCompatibleStream');
|
||||
self.stop();
|
||||
return false;
|
||||
}
|
||||
|
||||
self.currentSubtitleStreamIndex = subtitleStreamIndex;
|
||||
|
||||
currentSrc = streamInfo.url;
|
||||
|
@ -893,7 +899,7 @@
|
|||
mediaUrl += seekParam;
|
||||
|
||||
playMethod = 'DirectStream';
|
||||
} else {
|
||||
} else if (mediaSource.SupportsTranscoding) {
|
||||
|
||||
mediaUrl = ApiClient.getUrl(mediaSource.TranscodingUrl);
|
||||
|
||||
|
@ -938,7 +944,8 @@
|
|||
mediaUrl += "&static=true" + seekParam;
|
||||
|
||||
playMethod = 'DirectStream';
|
||||
} else {
|
||||
|
||||
} else if (mediaSource.SupportsTranscoding) {
|
||||
|
||||
mediaUrl = ApiClient.getUrl(mediaSource.TranscodingUrl);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue