mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(mobile): video player not updating state (#10220)
* fix(mobile): video player not updating state * unused code
This commit is contained in:
parent
47ef48e3c2
commit
67e98ed313
3 changed files with 20 additions and 4 deletions
|
|
@ -64,6 +64,8 @@ class CustomVideoPlayerControls extends HookConsumerWidget {
|
|||
final state = ref.read(videoPlaybackValueProvider).state;
|
||||
if (state == VideoPlaybackState.playing) {
|
||||
ref.read(videoPlayerControlsProvider.notifier).pause();
|
||||
} else if (state == VideoPlaybackState.completed) {
|
||||
ref.read(videoPlayerControlsProvider.notifier).restart();
|
||||
} else {
|
||||
ref.read(videoPlayerControlsProvider.notifier).play();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue