From 326af0928206c433555e28fa3b65e8752b4e6cdb Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Wed, 10 Dec 2025 13:19:19 +0100 Subject: [PATCH] Feature: Visual Snackbar for resume playback feedback --- .../features/iptv/screens/native_player_screen.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/mobile/features/iptv/screens/native_player_screen.dart b/lib/mobile/features/iptv/screens/native_player_screen.dart index 8cd4f6d..7bf1fb2 100644 --- a/lib/mobile/features/iptv/screens/native_player_screen.dart +++ b/lib/mobile/features/iptv/screens/native_player_screen.dart @@ -300,6 +300,17 @@ class _NativePlayerScreenState extends ConsumerState { if (_isPlaying && _duration.inSeconds > 0) { debugPrint('MediaKitPlayer: Seeking to resume position ${positionSeconds}s (attempt $attempt)'); _player.seek(Duration(seconds: positionSeconds)); + + // Show visual notification + final minutes = positionSeconds ~/ 60; + final seconds = positionSeconds % 60; + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: Text('Reprise à ${minutes.toString().padLeft(2, '0')}:${seconds.toString().padLeft(2, '0')}'), + duration: const Duration(seconds: 2), + backgroundColor: Colors.green.shade700, + ), + ); } else { debugPrint('MediaKitPlayer: Player not ready, retrying resume seek (attempt $attempt)'); _seekToResume(positionSeconds, attempt + 1);