From e3fa8fea649f7a8831546c6e321e74ca64794645 Mon Sep 17 00:00:00 2001 From: Danny McClelland Date: Tue, 21 Jul 2026 17:19:13 +0100 Subject: [PATCH] fix(splash): don't interrupt other apps' audio on cold start The muted splash video still requested audio focus, so on a cold start Edge paused whatever the user was already playing. Pass VideoPlayerOptions(mixWithOthers: true) so the splash mixes instead of interrupting. --- lib/ui/splash/boot_splash.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ui/splash/boot_splash.dart b/lib/ui/splash/boot_splash.dart index b36e17e..9c749c7 100644 --- a/lib/ui/splash/boot_splash.dart +++ b/lib/ui/splash/boot_splash.dart @@ -80,7 +80,13 @@ class _BootSplashState extends State { Future _initVideo() async { try { final c = (widget.controllerFactory ?? - () => VideoPlayerController.asset('assets/splash/splashscreen.mp4'))(); + () => VideoPlayerController.asset( + 'assets/splash/splashscreen.mp4', + // Don't grab audio focus for the (muted) splash video — a bare + // controller pauses whatever the user is already playing on a + // cold start. mixWithOthers lets their audio keep going. + videoPlayerOptions: VideoPlayerOptions(mixWithOthers: true), + ))(); _video = c; await c.initialize(); await c.setVolume(0); // always muted