From f53661c42b06aa0797b8a393670f3f1f39c0c075 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Tue, 16 Dec 2025 22:24:24 +0100 Subject: [PATCH] feat: add on-screen audio track button for VOD debugging --- .../iptv/screens/native_player_screen.dart | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/mobile/features/iptv/screens/native_player_screen.dart b/lib/mobile/features/iptv/screens/native_player_screen.dart index 111f2d3..ecdabca 100644 --- a/lib/mobile/features/iptv/screens/native_player_screen.dart +++ b/lib/mobile/features/iptv/screens/native_player_screen.dart @@ -63,6 +63,7 @@ class _NativePlayerScreenState extends ConsumerState final FocusNode _prevFocusNode = FocusNode(); final FocusNode _nextFocusNode = FocusNode(); final FocusNode _backFocusNode = FocusNode(); + final FocusNode _audioFocusNode = FocusNode(); bool _isLoading = true; String? _errorMessage; @@ -1025,6 +1026,23 @@ class _NativePlayerScreenState extends ConsumerState const SizedBox(width: 32), + // Audio Button (VOD Only) + if (widget.streamType != StreamType.live) ...[ + TVFocusable( + focusNode: _audioFocusNode, + onPressed: _cycleAudioTrack, + onFocus: _resetControlsTimer, + borderRadius: BorderRadius.circular(50), + child: IconButton( + icon: const Icon(Icons.audiotrack, + color: Colors.white, size: 32), + onPressed: _cycleAudioTrack, + tooltip: 'Changer Piste Audio', + ), + ), + const SizedBox(width: 32), + ], + // Next Channel / Forward 10s if (widget.streamType == StreamType.live && widget.channels != null &&