-
Notifications
You must be signed in to change notification settings - Fork 118
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
FR: Directly load Picture-in-Picture (PiP) for "play movie.mp4" #835
Comments
Hi, |
I experimented with a few booleans again, but I couldn't make it run PiP automatically. I think Apple doesn't want PiP to be automatic, it has to require user interaction (clicking on the PiP icon). There's a neat feature that I haven't advertised, though: if you start playing a video, and you haven't clicked to start PictureInPicture, then a-Shell will continue the sound track (because that's feasible) while removing the video track. |
I'm not an iOS developer so can only do some basic research on if it's possible. Thanks for experimenting further yourself. Would the following methods indicate that it could be possible? https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/startpictureinpicture() |
After reading a little further I realise that the Happy for you to close this if your own research finds that it's not possible and that the workaround is sufficient for your users |
I have created some iOS shortcuts to imitate PiP from the stock photos app/gallery app which executes a-shell mini scripts to play a video using the following command:
play movie.mp4
It would be great if there was an option to enable PiP directly from the command such that it opens the video directly in PiP mode i.e.
play movie.mp4 --pip
Is this possible, or are there other methods which would be possible for me to try?
The text was updated successfully, but these errors were encountered: