feat: add auto play setting to mobile

This commit is contained in:
Saschl 2025-07-29 23:16:06 +02:00
parent e6ec019852
commit d7be551762
6 changed files with 19 additions and 2 deletions

View file

@ -209,7 +209,10 @@ class NativeVideoViewer extends HookConsumerWidget {
}
try {
await videoController.play();
final autoPlayVideo = ref.read(appSettingsServiceProvider).getSetting<bool>(AppSettingsEnum.autoPlayVideo);
if (autoPlayVideo) {
await videoController.play();
}
await videoController.setVolume(0.9);
} catch (error) {
log.severe('Error playing video: $error');