mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-24 15:48:14 +02:00
v1.1.1: Fix audio continuing in background when leaving player
This commit is contained in:
1 parent
ee1152ee95
commit
f46216aa90
2 files changed
+4
-1
No files matched your search
@@ -240,6 +240,9 @@ class _NativePlayerScreenState extends ConsumerState<NativePlayerScreen> {
|
||||
_clockTimer?.cancel();
|
||||
_controlsTimer?.cancel();
|
||||
_liveWatchdog?.cancel();
|
||||
|
||||
// Stop playback first to prevent audio continuing in background
|
||||
_player.stop();
|
||||
_player.dispose();
|
||||
_xtreamService?.dispose();
|
||||
|
||||
|
||||
Reference in new issue
Block a user