Open noahbino opened 2 years ago
Is there a way automatically load the YoutubePlayerView as Picture in Picture or at least in full screen?
func presentPiPYTVideo(url: URL){ guard let topVC = UIApplication.topViewController() else {return} let youtubePlayerView = YouTubePlayerView(frame: topVC.view.bounds) topVC.view.addSubview(youtubePlayerView) youtubePlayerView.loadVideoURL(url) //youtubePlayerView.loadPictureinPicture() <- Anything like this? }
Is there a way automatically load the YoutubePlayerView as Picture in Picture or at least in full screen?