Skip to content

Commit

Permalink
✨ Try fixing crash on media page
Browse files Browse the repository at this point in the history
  • Loading branch information
wrngwrld committed Feb 5, 2025
1 parent 0a71182 commit 5179c6f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/widgets/webm_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,19 @@ class VLCPlayerState extends State<VLCPlayer> {
inactiveColor:
CupertinoColors.systemFill,
thumbColor: CupertinoColors.white,
value: sliderValue,
value: sliderValue.clamp(
0.0,
(!validPosition &&
_videoPlayerController
.value
.duration ==
null)
? 1.0
: _videoPlayerController
.value
.duration
.inSeconds
.toDouble()),
min: 0.0,
max: (!validPosition &&
_videoPlayerController
Expand Down

0 comments on commit 5179c6f

Please sign in to comment.