Skip to content

Commit

Permalink
Capture self
Browse files Browse the repository at this point in the history
  • Loading branch information
hawk23 committed Nov 26, 2024
1 parent e8dd2f8 commit 0a64b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/FlutterPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0a64b44

Please sign in to comment.