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

3.0.5641.0

This commit is contained in:
Luke Pulverenti 2015-06-11 17:22:44 -04:00
parent f13e19c928
commit b67a9e2f98

View file

@ -4,7 +4,7 @@
var currentPlayer;
var lastPlayerState;
var lastUpdateTime;
var lastUpdateTime = 0;
function updatePlayerState(state, eventName) {
@ -68,8 +68,9 @@
// Don't go crazy reporting position changes
if (eventName == 'positionchange') {
var time = new Date().getTime();
if ((time - lastUpdateTime) < 500) {
if (lastUpdateTime) {
// Only report if this item hasn't been reported yet, or if there's an actual playback change.
// Don't report on simple time updates
return;
}
}
@ -118,6 +119,7 @@
function hideMediaControls() {
MainActivity.hideMediaSession();
lastUpdateTime = 0;
}
function bindToPlayer(player) {