mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
change tv and home to multi-pages
This commit is contained in:
parent
e2823d0367
commit
5bfd2d683c
63 changed files with 987 additions and 658 deletions
|
@ -89,7 +89,7 @@
|
|||
|
||||
ApiClientBridge.sendRequest(JSON.stringify(javaRequest), request.dataType, id);
|
||||
|
||||
Events.on(AndroidAjax, 'response' + id, function (e, isSuccess, status, response) {
|
||||
Events.on(AndroidAjax, 'response' + id, function (e, isSuccess, response) {
|
||||
|
||||
Events.off(AndroidAjax, 'response' + id);
|
||||
|
||||
|
@ -116,7 +116,10 @@
|
|||
|
||||
var error = {};
|
||||
|
||||
error.status = response.StatusCode;
|
||||
if (response.StatusCode) {
|
||||
error.status = response.StatusCode;
|
||||
}
|
||||
|
||||
error.ResponseHeaders = response.ResponseHeaders || {};
|
||||
|
||||
error.getResponseHeader = function (name) {
|
||||
|
@ -133,13 +136,13 @@
|
|||
|
||||
window.AndroidAjax = {
|
||||
|
||||
onResponse: function (id, status, response) {
|
||||
onResponse: function (id, response) {
|
||||
|
||||
Events.trigger(AndroidAjax, 'response' + id, [true, status, response]);
|
||||
Events.trigger(AndroidAjax, 'response' + id, [true, response]);
|
||||
},
|
||||
onError: function (id, status, response) {
|
||||
onError: function (id, response) {
|
||||
|
||||
Events.trigger(AndroidAjax, 'response' + id, [false, status, response]);
|
||||
Events.trigger(AndroidAjax, 'response' + id, [false, response]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
6
dashboard-ui/cordova/android/immersive.js
vendored
6
dashboard-ui/cordova/android/immersive.js
vendored
|
@ -65,15 +65,15 @@
|
|||
return;
|
||||
}
|
||||
|
||||
$(player).on('playbackstart.fullscreen', onPlaybackStart)
|
||||
.on('playbackstop.fullscreen', onPlaybackStopped);
|
||||
$(player).on('playbackstart', onPlaybackStart)
|
||||
.on('playbackstop', onPlaybackStopped);
|
||||
}
|
||||
|
||||
function releaseCurrentPlayer() {
|
||||
|
||||
if (currentPlayer) {
|
||||
|
||||
$(currentPlayer).off('.fullscreen');
|
||||
$(currentPlayer).off('playbackstart', onPlaybackStart).off('playbackstop', onPlaybackStopped);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
14
dashboard-ui/cordova/android/mediasession.js
vendored
14
dashboard-ui/cordova/android/mediasession.js
vendored
|
@ -119,7 +119,11 @@
|
|||
|
||||
if (currentPlayer) {
|
||||
|
||||
$(currentPlayer).off('.cordovaremote');
|
||||
$(currentPlayer).off('playbackstart', onPlaybackStart)
|
||||
.off('playbackstop', onPlaybackStopped)
|
||||
.off('playstatechange', onStateChanged)
|
||||
.off('positionchange', onStateChanged);
|
||||
|
||||
currentPlayer.endPlayerUpdates();
|
||||
currentPlayer = null;
|
||||
|
||||
|
@ -153,10 +157,10 @@
|
|||
onStateChanged.call(player, { type: 'init' }, state);
|
||||
});
|
||||
|
||||
$(player).on('playbackstart.cordovaremote', onPlaybackStart)
|
||||
.on('playbackstop.cordovaremote', onPlaybackStopped)
|
||||
.on('playstatechange.cordovaremote', onStateChanged)
|
||||
.on('positionchange.cordovaremote', onStateChanged);
|
||||
$(player).on('playbackstart', onPlaybackStart)
|
||||
.on('playbackstop', onPlaybackStopped)
|
||||
.on('playstatechange', onStateChanged)
|
||||
.on('positionchange', onStateChanged);
|
||||
}
|
||||
|
||||
Dashboard.ready(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue