Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to auto play in PiP? #224

Open
noahbino opened this issue Nov 23, 2021 · 1 comment
Open

How to auto play in PiP? #224

noahbino opened this issue Nov 23, 2021 · 1 comment

Comments

@noahbino
Copy link

noahbino commented Nov 23, 2021

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?
    }
@Purehi
Copy link

Purehi commented Dec 17, 2024

If you use android app, you can try this app. it will auto play video in pip.
WeTube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants