mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: add RecordingsTab widget and EPG guide view for IPTV playback management
This commit is contained in:
1 parent
e4301077b0
commit
d82f9f6846
1 file changed
+10
@@ -789,6 +789,15 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Duration? recordingDuration;
|
||||||
|
try {
|
||||||
|
if (rec['start_time'] != null && rec['end_time'] != null) {
|
||||||
|
final start = DateTime.parse(rec['start_time'].toString());
|
||||||
|
final end = DateTime.parse(rec['end_time'].toString());
|
||||||
|
recordingDuration = end.difference(start);
|
||||||
|
}
|
||||||
|
} catch (_) {}
|
||||||
|
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
Navigator.of(context).push(
|
Navigator.of(context).push(
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
@@ -798,6 +807,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
|||||||
playlist: widget.playlist,
|
playlist: widget.playlist,
|
||||||
streamType: StreamType.recording,
|
streamType: StreamType.recording,
|
||||||
containerExtension: 'ts',
|
containerExtension: 'ts',
|
||||||
|
duration: recordingDuration,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user