mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-24 15:48:14 +02:00
feat: implement native IPTV player screen using media_kit with optimized playback profiles
This commit is contained in:
1 parent
a1628a6b13
commit
4c78210c5c
2 files changed
+41
-21
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user