Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/mux-analytics.brs
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,14 @@ function muxAnalytics() as Object
if m.video_state <> "playing" then return
if m._contentPlaybackTime = Invalid then return

m._contentPlaybackTime = m._contentPlaybackTime + ((m._playerPlayheadTime - m._Flag_lastReportedPosition) * 1000)
timeDelta = m._playerPlayheadTime - m._Flag_lastReportedPosition

' Guard against suspiciously large jumps
if timeDelta > 100 then
return
end if

m._contentPlaybackTime = m._contentPlaybackTime + (timeDelta * 1000)
end sub

prototype._updateTotalWatchTime = sub()
Expand Down