From f5aeba7e6ded50f7161839dcf8b8d743dbcc7518 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 29 Aug 2024 15:03:01 -0500 Subject: [PATCH] turn on volume when video plays --- mobile/lib/pages/common/native_video_viewer.page.dart | 1 + mobile/pubspec.lock | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/lib/pages/common/native_video_viewer.page.dart b/mobile/lib/pages/common/native_video_viewer.page.dart index 4077cb7cd246b..e0cbcd0f09daf 100644 --- a/mobile/lib/pages/common/native_video_viewer.page.dart +++ b/mobile/lib/pages/common/native_video_viewer.page.dart @@ -147,6 +147,7 @@ class NativeVideoViewerPage extends HookConsumerWidget { void onPlaybackReady() { controller.value?.play(); + controller.value?.setVolume(0.9); } void onPlaybackPositionChanged() { diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index e6b18bb1f8df9..3a9c895cef7d6 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -1746,10 +1746,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc url: "https://pub.dev" source: hosted - version: "14.2.5" + version: "14.2.4" wakelock_plus: dependency: "direct main" description: