mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
re-enable mobile media controller
This commit is contained in:
parent
8a5cd4b491
commit
57d8c433c5
10 changed files with 246 additions and 38 deletions
|
@ -107,26 +107,24 @@
|
|||
|
||||
var currentSrc = element.currentSrc;
|
||||
|
||||
var transcodingExtension = self.getTranscodingExtension();
|
||||
var isStatic;
|
||||
|
||||
if (currentItem.MediaType == "Video") {
|
||||
|
||||
if (params.AudioStreamIndex != null) {
|
||||
currentSrc = replaceQueryString(currentSrc, 'AudioStreamIndex', params.AudioStreamIndex);
|
||||
}
|
||||
if (params.SubtitleStreamIndex != null) {
|
||||
currentSrc = replaceQueryString(currentSrc, 'SubtitleStreamIndex', (params.SubtitleStreamIndex == -1 ? '' : params.SubtitleStreamIndex));
|
||||
}
|
||||
}
|
||||
|
||||
var maxWidth = params.MaxWidth || getParameterByName('MaxWidth', currentSrc);
|
||||
var audioStreamIndex = params.AudioStreamIndex == null ? getParameterByName('AudioStreamIndex', currentSrc) : params.AudioStreamIndex;
|
||||
var subtitleStreamIndex = params.SubtitleStreamIndex == null ? getParameterByName('SubtitleStreamIndex', currentSrc) : params.SubtitleStreamIndex;
|
||||
var videoBitrate = parseInt(getParameterByName('VideoBitrate', currentSrc) || '0');
|
||||
var audioBitrate = parseInt(getParameterByName('AudioBitrate', currentSrc) || '0');
|
||||
var bitrate = params.Bitrate || (videoBitrate + audioBitrate);
|
||||
|
||||
var transcodingExtension = self.getTranscodingExtension();
|
||||
|
||||
var isStatic;
|
||||
if (currentItem.MediaType == "Video") {
|
||||
var maxWidth = params.MaxWidth || getParameterByName('MaxWidth', currentSrc);
|
||||
var audioStreamIndex = params.AudioStreamIndex == null ? getParameterByName('AudioStreamIndex', currentSrc) : params.AudioStreamIndex;
|
||||
var subtitleStreamIndex = params.SubtitleStreamIndex == null ? getParameterByName('SubtitleStreamIndex', currentSrc) : params.SubtitleStreamIndex;
|
||||
var videoBitrate = parseInt(getParameterByName('VideoBitrate', currentSrc) || '0');
|
||||
var audioBitrate = parseInt(getParameterByName('AudioBitrate', currentSrc) || '0');
|
||||
var bitrate = params.Bitrate || (videoBitrate + audioBitrate);
|
||||
|
||||
var finalParams = self.getFinalVideoParams(currentMediaSource, maxWidth, bitrate, audioStreamIndex, subtitleStreamIndex, transcodingExtension);
|
||||
|
||||
|
@ -1176,7 +1174,9 @@
|
|||
IsPaused: currentMediaElement.paused,
|
||||
IsMuted: currentMediaElement.volume == 0,
|
||||
VolumeLevel: currentMediaElement.volume * 100,
|
||||
PositionTicks: self.getCurrentTicks()
|
||||
PositionTicks: self.getCurrentTicks(),
|
||||
|
||||
CanSeek: currentMediaSource.RunTimeTicks && currentMediaSource.RunTimeTicks > 0
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1186,7 +1186,7 @@
|
|||
clearTimeout(currentProgressInterval);
|
||||
currentProgressInterval = null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function canPlayWebm() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue