From cd287450254583d30ff165091ae808ba099946fd Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 12 Nov 2026 00:10:06 -0500 Subject: [PATCH] stop videos from autoplaying on desktop --- lib/widgets/players/video.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/widgets/players/video.dart b/lib/widgets/players/video.dart index f4c19be..0f09f88 100644 --- a/lib/widgets/players/video.dart +++ b/lib/widgets/players/video.dart @@ -138,6 +138,9 @@ class const VideoPlayer( .downloadMedia(.new(mxc: uri, encrypted: encrypted)); if (!context.mounted) return; await controller.setupDataSource(.file(video.path)); + // better_player's mpv backend (Linux and Windows) starts playing as + // soon as it loads a file, despite autoPlay being off + await controller.pause(); if (context.mounted) loaded.value = true; });