mirror of
https://github.com/immich-app/immich.git
synced 2025-01-14 15:45:55 +02:00
pause on dispose
This commit is contained in:
parent
67df5e02a7
commit
3ed05a9b3e
@ -127,6 +127,7 @@ class VideoViewerPage extends HookConsumerWidget {
|
||||
controller.videoPlayerController.addListener(updateVideoPlayback);
|
||||
return () {
|
||||
// Removes listener when we dispose
|
||||
controller.pause();
|
||||
controller.videoPlayerController.removeListener(updateVideoPlayback);
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user