diff --git a/packages/hms_room_kit/lib/src/hls_viewer/hls_player_seekbar.dart b/packages/hms_room_kit/lib/src/hls_viewer/hls_player_seekbar.dart index fe28dc1b4..e23176088 100644 --- a/packages/hms_room_kit/lib/src/hls_viewer/hls_player_seekbar.dart +++ b/packages/hms_room_kit/lib/src/hls_viewer/hls_player_seekbar.dart @@ -49,7 +49,12 @@ class _HLSPlayerSeekbarState extends State { 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(