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:
parent
f13e19c928
commit
b67a9e2f98
1 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue