Remove unnecessary check

This commit is contained in:
ferferga 2020-01-29 08:38:56 +01:00
parent 6bea97ef0f
commit 02c820de5b

View File

@ -97,11 +97,8 @@ define(['playbackManager', 'nowPlayingHelper', 'events', 'connectionManager'], f
}
function updatePlayerState(player, state, eventName) {
var now = new Date().getTime();
lastUpdateTime = now;
// 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.
// Don't report on simple time updates
return;