1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update translations

This commit is contained in:
Luke Pulverenti 2015-07-08 20:20:01 -04:00
parent 8030454e19
commit 22586c7a8f
41 changed files with 17432 additions and 17417 deletions

View file

@ -202,7 +202,9 @@
button.addClass('hide');
}
function updatePlayerState(state) {
var lastUpdateTime = 0;
function updatePlayerState(event, state) {
if (state.NowPlayingItem) {
showNowPlayingBar();
@ -211,6 +213,19 @@
return;
}
if (event.type == 'positionchange') {
// Try to avoid hammering the document with changes
var now = new Date().getTime();
if ((now - lastUpdateTime) < 700) {
console.log('skipping UI update');
return;
}
lastUpdateTime = now;
}
console.log(new Date().getTime());
lastPlayerState = state;
if (!muteButton) {
@ -343,7 +358,7 @@
nowPlayingTextElement.html(nameHtml);
var url;
var imgHeight = 90;
var imgHeight = 80;
var nowPlayingItem = state.NowPlayingItem;
@ -451,7 +466,7 @@
return;
}
updatePlayerState(state);
updatePlayerState(e, state);
}
function releaseCurrentPlayer() {