stop videos from autoplaying on desktop
This commit is contained in:
parent
0c864d613a
commit
cd28745025
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue