Skip to content

Commit

Permalink
Fixed seek bar issue while calling seekForward in live edge
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Apr 29, 2024
1 parent 255eb37 commit 3a1932f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class _HLSPlayerSeekbarState extends State<HLSPlayerSeekbar> {
hlsPlayerStore.timeFromLive, hlsPlayerStore.rollingWindow),
builder: (_, data, __) {
maxValue = data.item2.inSeconds;
seekBarValue = maxValue > 0 ? maxValue - data.item1.inSeconds : 0;
///We only subtract the time from live from the rolling window if the time from live is greater than 0
seekBarValue = maxValue > 0 ? maxValue - (data.item1.inSeconds> 0?data.item1.inSeconds:0) : 0;
minValue = 0;
return (maxValue > 0 && seekBarValue > 0)
? SliderTheme(
Expand Down

0 comments on commit 3a1932f

Please sign in to comment.