Skip to content

Commit

Permalink
fix: pipi
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe authored and peilinok committed Dec 6, 2024
1 parent 1258fd2 commit 584dc87
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class _State extends State<PictureInPicture> with WidgetsBindingObserver {

@override
Future<void> dispose() async {
await _engine.stopPip();
if(Platform.isIOS){
await _engine.stopPip();
}
WidgetsBinding.instance.removeObserver(this);
_dispose();
super.dispose();
Expand Down

0 comments on commit 584dc87

Please sign in to comment.