We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a09fa commit 8500888Copy full SHA for 8500888
src/mux-analytics.brs
@@ -1120,7 +1120,14 @@ function muxAnalytics() as Object
1120
if m.video_state <> "playing" then return
1121
if m._contentPlaybackTime = Invalid then return
1122
1123
- m._contentPlaybackTime = m._contentPlaybackTime + ((m._playerPlayheadTime - m._Flag_lastReportedPosition) * 1000)
+ timeDelta = m._playerPlayheadTime - m._Flag_lastReportedPosition
1124
+
1125
+ ' Guard against suspiciously large jumps
1126
+ if timeDelta > 100 then
1127
+ return
1128
+ end if
1129
1130
+ m._contentPlaybackTime = m._contentPlaybackTime + (timeDelta * 1000)
1131
end sub
1132
1133
prototype._updateTotalWatchTime = sub()
0 commit comments