Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
moxun33 committed Mar 2, 2023
1 parent 2d89b83 commit d63e8a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/player/fvp_videoframe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,14 @@ class _VolumeControlState extends State<VolumeControl> {
final v = volume;
if (v > 0) {
unmutedVolume = v;
player?.setVolume(0);
player?.setMute(true);
setState(() {
volume = 0;
});
} else {
player?.setMute(false);
player?.setVolume(unmutedVolume);

setState(() {
volume = unmutedVolume;
});
Expand Down

0 comments on commit d63e8a3

Please sign in to comment.