Skip to content

Commit

Permalink
fix(ios): fix tvOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch committed Feb 8, 2024
1 parent 81ddb12 commit 4f252e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
deinit {
NotificationCenter.default.removeObserver(self)
self.removePlayerLayer()
_pip = nil
_playerObserver.clearPlayer()

#if os(iOS)
_pip = nil
#endif
}

// MARK: - App lifecycle handlers
Expand Down

0 comments on commit 4f252e1

Please sign in to comment.