From 3ed05a9b3ee3869512e3e6317e9a5447427a30b1 Mon Sep 17 00:00:00 2001 From: Marty Fuhry Date: Tue, 5 Mar 2024 13:01:05 -0500 Subject: [PATCH] pause on dispose --- mobile/lib/modules/asset_viewer/views/video_viewer_page.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/lib/modules/asset_viewer/views/video_viewer_page.dart b/mobile/lib/modules/asset_viewer/views/video_viewer_page.dart index 5d621a0e63..a164f242c5 100644 --- a/mobile/lib/modules/asset_viewer/views/video_viewer_page.dart +++ b/mobile/lib/modules/asset_viewer/views/video_viewer_page.dart @@ -127,6 +127,7 @@ class VideoViewerPage extends HookConsumerWidget { controller.videoPlayerController.addListener(updateVideoPlayback); return () { // Removes listener when we dispose + controller.pause(); controller.videoPlayerController.removeListener(updateVideoPlayback); }; },