From 0a64b444bca15e4e86044b84996c2146daaaa448 Mon Sep 17 00:00:00 2001 From: Mario Graf Date: Tue, 26 Nov 2024 17:52:10 +0100 Subject: [PATCH] Capture self --- ios/Classes/FlutterPlayerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/FlutterPlayerView.swift b/ios/Classes/FlutterPlayerView.swift index 6015460c..260aa683 100644 --- a/ios/Classes/FlutterPlayerView.swift +++ b/ios/Classes/FlutterPlayerView.swift @@ -42,7 +42,7 @@ internal class FlutterPlayerView: NSObject, FlutterPlatformView { methodChannel.setMethodCallHandler(handleMethodCall) eventChannel.setStreamHandler(self) PlayerManager.shared.onPlayerCreated(id: arguments.playerId) { [weak self] player in - Task { @MainActor in + Task { @MainActor [weak self] in self?.createPlayerView( player: player, hasFullscreenHandler: arguments.hasFullscreenHandler,