Skip to content

Commit

Permalink
fix(tvOS): fix tvos compile error (#4369)
Browse files Browse the repository at this point in the history
* fix(tvOS): fix tvos compile error
  • Loading branch information
YangJonghun authored Jan 18, 2025
1 parent 6cc1bff commit 6c3af99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions ios/Video/Features/RCTPictureInPicture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,14 @@ import React
}
}
}
#else
class RCTPictureInPicture: NSObject {
public let _pipController: NSObject? = nil

func setRestoreUserInterfaceForPIPStopCompletionHandler(_: Bool) {}
func setupPipController(_: AVPlayerLayer?) {}
func deinitPipController() {}
func enterPictureInPicture() {}
func exitPictureInPicture() {}
}
#endif
4 changes: 1 addition & 3 deletions ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
private let _videoCache: RCTVideoCachingHandler = .init()
#endif

#if os(iOS)
private var _pip: RCTPictureInPicture?
#endif
private var _pip: RCTPictureInPicture?

// Events
@objc var onVideoLoadStart: RCTDirectEventBlock?
Expand Down

0 comments on commit 6c3af99

Please sign in to comment.