From 11d4945ce84498c46f1b0e178997588fbb514749 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Tue, 5 Mar 2024 11:08:56 -0600 Subject: [PATCH] fix LivePhotos not playing --- .../modules/asset_viewer/hooks/chewiew_controller_hook.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/lib/modules/asset_viewer/hooks/chewiew_controller_hook.dart b/mobile/lib/modules/asset_viewer/hooks/chewiew_controller_hook.dart index 46781eca20..f8736c3fa4 100644 --- a/mobile/lib/modules/asset_viewer/hooks/chewiew_controller_hook.dart +++ b/mobile/lib/modules/asset_viewer/hooks/chewiew_controller_hook.dart @@ -148,8 +148,10 @@ class _ChewieControllerHookState hook.onPaused?.call(); } - if (value.position == value.duration) { + if (value.position != const Duration() && + value.position == value.duration) { WakelockPlus.disable(); + hook.onVideoEnded?.call(); } });