fix looping

This commit is contained in:
mertalev
2024-12-01 02:30:04 -05:00
parent b15e01e2b6
commit d414c2789a
5 changed files with 52 additions and 52 deletions
@@ -34,7 +34,9 @@ class CustomVideoPlayerControls extends HookConsumerWidget {
}
// Do not hide on paused
if (state != VideoPlaybackState.paused && assetIsVideo) {
if (state != VideoPlaybackState.paused &&
state != VideoPlaybackState.completed &&
assetIsVideo) {
ref.read(showControlsProvider.notifier).show = false;
}
},