mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
28bb4ffd62
commit
6fb6168107
12 changed files with 113 additions and 241 deletions
|
@ -684,7 +684,7 @@
|
|||
};
|
||||
|
||||
self.stop = function () {
|
||||
castPlayer.sendMessage({
|
||||
return castPlayer.sendMessage({
|
||||
options: {},
|
||||
command: 'Stop'
|
||||
});
|
||||
|
@ -726,7 +726,7 @@
|
|||
return state.PositionTicks;
|
||||
};
|
||||
|
||||
self.duration = function() {
|
||||
self.duration = function () {
|
||||
var state = self.lastPlayerData || {};
|
||||
state = state.NowPlayingItem || {};
|
||||
return state.RunTimeTicks;
|
||||
|
@ -941,10 +941,11 @@
|
|||
|
||||
self.endSession = function () {
|
||||
|
||||
self.stop();
|
||||
setTimeout(function () {
|
||||
castPlayer.stopApp();
|
||||
}, 1000);
|
||||
self.stop().then(function () {
|
||||
setTimeout(function () {
|
||||
castPlayer.stopApp();
|
||||
}, 1000);
|
||||
});
|
||||
};
|
||||
|
||||
self.volumeUp = function () {
|
||||
|
@ -975,7 +976,7 @@
|
|||
};
|
||||
|
||||
function normalizePrimaryImage(state) {
|
||||
|
||||
|
||||
if (state && state.NowPlayingItem) {
|
||||
if (!state.NowPlayingItem.ImageTags || !state.NowPlayingItem.ImageTags.Primary) {
|
||||
if (state.NowPlayingItem.PrimaryImageTag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue