feat: implement NativePlayerScreen using media_kit with optimized playback and decoding configurations

This commit is contained in:
Michael committed 2026-03-29 19:47:39 +02:00
1 parent 5110d70d73
commit 4a884af972
8 files changed
+754 -149

No files matched your search

+10 -5
View File
@@ -36,7 +36,8 @@ class MemoryProfiler {
});
if (kDebugMode) {
print(
'⏰ PERIODIC MEMORY MONITORING STARTED (${interval.inSeconds}s interval)');
'⏰ PERIODIC MEMORY MONITORING STARTED (${interval.inSeconds}s interval)',
);
}
}
@@ -51,10 +52,14 @@ class MemoryProfiler {
/// Analyze memory growth between snapshots
static MemoryAnalysis analyzeGrowth(String startLabel, String endLabel) {
final start = _snapshots.firstWhere((s) => s.label == startLabel,
orElse: () => _snapshots.first);
final end = _snapshots.firstWhere((s) => s.label == endLabel,
orElse: () => _snapshots.last);
final start = _snapshots.firstWhere(
(s) => s.label == startLabel,
orElse: () => _snapshots.first,
);
final end = _snapshots.firstWhere(
(s) => s.label == endLabel,
orElse: () => _snapshots.last,
);
return MemoryAnalysis(
startLabel: startLabel,