1
0
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:
Marty Fuhry 2024-03-05 13:01:05 -05:00
parent 67df5e02a7
commit 3ed05a9b3e
No known key found for this signature in database
GPG Key ID: E2AB6392D894D900

View File

@ -127,6 +127,7 @@ class VideoViewerPage extends HookConsumerWidget {
controller.videoPlayerController.addListener(updateVideoPlayback);
return () {
// Removes listener when we dispose
controller.pause();
controller.videoPlayerController.removeListener(updateVideoPlayback);
};
},