fix(mobile): enable autoplay for motion photos in video viewer (#27961)

This commit is contained in:
Luis Nachtigall 2026-04-21 22:53:21 +02:00 committed by GitHub
parent 3dc7dc93d8
commit 3a874dd441
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,7 +148,7 @@ class _NativeVideoViewerState extends ConsumerState<NativeVideoViewer> with Widg
if (ref.read(assetViewerProvider).showingDetails) return;
final autoPlayVideo = AppSetting.get(Setting.autoPlayVideo);
if (autoPlayVideo) await _notifier.play();
if (autoPlayVideo || widget.asset.isMotionPhoto) await _notifier.play();
}
void _onPlaybackEnded() {