fix: android video surface lifecycle management

close #771
This commit is contained in:
edde746
2026-03-29 18:07:50 +02:00
parent 6a7644935f
commit ad8faab9ea
7 changed files with 534 additions and 96 deletions
@@ -387,6 +387,12 @@ class PlayerAndroid extends PlayerBase {
await invoke('clearVideoFrameRate');
}
@override
Future<void> updateFrame() async {
if (disposed || !initialized) return;
await invoke('updateFrame');
}
// ============================================
// Audio Focus
// ============================================