Skip to content

Commit

Permalink
Merge pull request #1867 from cewert/fix-videoplayer-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Jul 25, 2024
2 parents 8a15bf8 + b6408b5 commit 4dccbc0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,12 @@ end sub

' When Video Player state changes
sub onPositionChanged()

' Pass video position data into OSD
m.osd.progressPercentage = m.top.position / m.top.duration
if m.top.duration = 0
m.osd.progressPercentage = 0
else
m.osd.progressPercentage = m.top.position / m.top.duration
end if
m.osd.positionTime = m.top.position
m.osd.remainingPositionTime = m.top.duration - m.top.position

Expand Down

0 comments on commit 4dccbc0

Please sign in to comment.