mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
restore music alphabet pickers
This commit is contained in:
parent
a61e96accb
commit
467dc13089
14 changed files with 93 additions and 36 deletions
|
@ -9,7 +9,20 @@
|
|||
var mediaElement;
|
||||
var self = this;
|
||||
|
||||
function hideStatusBar() {
|
||||
if (options.type == 'video' && window.StatusBar) {
|
||||
StatusBar.hide();
|
||||
}
|
||||
}
|
||||
|
||||
function showStatusBar() {
|
||||
if (options.type == 'video' && window.StatusBar) {
|
||||
StatusBar.show();
|
||||
}
|
||||
}
|
||||
|
||||
function onEnded() {
|
||||
showStatusBar();
|
||||
$(self).trigger('ended');
|
||||
}
|
||||
|
||||
|
@ -66,6 +79,7 @@
|
|||
var errorCode = this.error ? this.error.code : '';
|
||||
Logger.log('Media element error code: ' + errorCode);
|
||||
|
||||
showStatusBar();
|
||||
$(self).trigger('error');
|
||||
}
|
||||
|
||||
|
@ -142,6 +156,8 @@
|
|||
|
||||
function onOneVideoPlaying() {
|
||||
|
||||
hideStatusBar();
|
||||
|
||||
var requiresNativeControls = !self.enableCustomVideoControls();
|
||||
|
||||
if (requiresNativeControls) {
|
||||
|
@ -553,6 +569,10 @@
|
|||
|
||||
self.enableCustomVideoControls = function () {
|
||||
|
||||
if (AppInfo.isNativeApp && $.browser.safari) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return self.canAutoPlayVideo() && !$.browser.mobile;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue