feat: implement native IPTV player screen using media_kit with optimized playback profiles

This commit is contained in:
Michael committed 2026-03-29 15:16:48 +02:00
1 parent a1628a6b13
commit 4c78210c5c
2 files changed
+41 -21

No files matched your search

+9
View File
@@ -8,6 +8,7 @@ import 'features/iptv/screens/mobile_dashboard_screen.dart';
import 'core/models/playlist_config.dart';
import 'core/database/hive_service.dart';
import 'core/utils/startup_profiler.dart';
import 'core/utils/device_info.dart';
/// Android-optimized entry point for XtremFlow IPTV
/// No authentication - direct access to playlist selection
@@ -25,6 +26,14 @@ void main() async {
await HiveService.init();
StartupProfiler.mark('hive_init');
// Initialize DeviceInfo for player buffering optimizations
try {
await DeviceInfo().init();
StartupProfiler.mark('device_info_init');
} catch (e) {
debugPrint('XtremFlow: DeviceInfo init failed: $e');
}
// [P0-2 FIX] Implement TTL-based cache instead of destructive clearing
// Cache is now persistent with TTL:
// - Channel/category lists: 6 hours