Skip to content

Commit

Permalink
Merge pull request #1944 from cewert/undo-buffer-state-change
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Sep 30, 2024
2 parents ad0c32c + 6d55a9e commit d7c99f5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -610,19 +610,12 @@ sub onState(msg)
' Pass video state into OSD
m.osd.playbackState = m.top.state

' When buffering, start timer to monitor buffering process
if m.top.state = "buffering"
' start buffer timer
' When buffering, start timer to monitor buffering process
if isValid(m.bufferCheckTimer)
m.bufferCheckTimer.control = "start"
m.bufferCheckTimer.ObserveField("fire", "bufferCheck")
end if

' update server if needed
if not m.playReported
m.playReported = true
ReportPlayback("start")
end if
else if m.top.state = "error"
m.log.error(m.top.errorCode, m.top.errorMsg, m.top.errorStr, m.top.errorCode)

Expand Down

0 comments on commit d7c99f5

Please sign in to comment.