mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
feat: force visible audio button for debugging
This commit is contained in:
1 parent
f53661c42b
commit
0f24f6bc6a
1 file changed
+14
-17
@@ -968,6 +968,20 @@ class _NativePlayerScreenState extends ConsumerState<NativePlayerScreen>
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
|
// FORCE AUDIO BUTTON (First item)
|
||||||
|
TVFocusable(
|
||||||
|
focusNode: _audioFocusNode,
|
||||||
|
onPressed: _cycleAudioTrack,
|
||||||
|
onFocus: _resetControlsTimer,
|
||||||
|
borderRadius: BorderRadius.circular(50),
|
||||||
|
child: IconButton(
|
||||||
|
icon: const Icon(Icons.audiotrack,
|
||||||
|
color: Colors.greenAccent, size: 32),
|
||||||
|
onPressed: _cycleAudioTrack,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 16),
|
||||||
|
|
||||||
// Prev Channel / Replay 10s
|
// Prev Channel / Replay 10s
|
||||||
if (widget.streamType == StreamType.live &&
|
if (widget.streamType == StreamType.live &&
|
||||||
widget.channels != null &&
|
widget.channels != null &&
|
||||||
@@ -1026,23 +1040,6 @@ class _NativePlayerScreenState extends ConsumerState<NativePlayerScreen>
|
|||||||
|
|
||||||
const SizedBox(width: 32),
|
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
|
// Next Channel / Forward 10s
|
||||||
if (widget.streamType == StreamType.live &&
|
if (widget.streamType == StreamType.live &&
|
||||||
widget.channels != null &&
|
widget.channels != null &&
|
||||||
|
|||||||
Reference in new issue
Block a user