mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove unnecessary check
This commit is contained in:
parent
6bea97ef0f
commit
02c820de5b
1 changed files with 1 additions and 4 deletions
|
@ -97,11 +97,8 @@ define(['playbackManager', 'nowPlayingHelper', 'events', 'connectionManager'], f
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePlayerState(player, state, eventName) {
|
function updatePlayerState(player, state, eventName) {
|
||||||
var now = new Date().getTime();
|
|
||||||
lastUpdateTime = now;
|
|
||||||
|
|
||||||
// Don't go crazy reporting position changes
|
// Don't go crazy reporting position changes
|
||||||
if (eventName == 'timeupdate' && (now - lastUpdateTime) < 5000) {
|
if (eventName == 'timeupdate') {
|
||||||
// Only report if this item hasn't been reported yet, or if there's an actual playback change.
|
// 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
|
// Don't report on simple time updates
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue