mirror of
https://github.com/immich-app/immich.git
synced 2026-02-14 21:08:15 +03:00
Hides controls when video starts and fixes placeholder for memory card
Remove prints
This commit is contained in:
@@ -96,14 +96,12 @@ class _ChewieControllerHookState
|
||||
|
||||
@override
|
||||
void initHook() async {
|
||||
print('CHEWIE CONTROLLER > creating chewie $hashCode');
|
||||
super.initHook();
|
||||
_initialize().whenComplete(() => setState(() {}));
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
print('CHEWIE CONTROLLER > disposing chewie $hashCode');
|
||||
videoPlayerController?.pause();
|
||||
videoPlayerController?.dispose();
|
||||
chewieController?.dispose();
|
||||
|
||||
@@ -110,6 +110,9 @@ class VideoViewerPage extends HookConsumerWidget {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Hide the controls
|
||||
ref.read(showControlsProvider.notifier).show = false;
|
||||
|
||||
final video = controller.videoPlayerController.value;
|
||||
|
||||
// Hold initial volume
|
||||
|
||||
@@ -72,9 +72,11 @@ class MemoryCard extends StatelessWidget {
|
||||
key: ValueKey(asset),
|
||||
asset: asset,
|
||||
showDownloadingIndicator: false,
|
||||
placeholder: ImmichImage(
|
||||
asset,
|
||||
fit: fit,
|
||||
placeholder: SizedBox.expand(
|
||||
child: ImmichImage(
|
||||
asset,
|
||||
fit: fit,
|
||||
),
|
||||
),
|
||||
hideControlsTimer: const Duration(seconds: 2),
|
||||
onVideoEnded: onVideoEnded,
|
||||
|
||||
Reference in New Issue
Block a user