amitv87 / PiP

macOS Picture in Picture and AirPlay Receiver
MIT License
476 stars 25 forks source link

Request: Native macOS Picture-in-Picture #4

Closed flipsticks closed 4 years ago

flipsticks commented 5 years ago

Hey amitv87,

Are there any plans to support Apples implementation of PiP? (Where the window float across multiple desktops/fullscreen apps, pinned to the screen edge)

amitv87 commented 5 years ago

By Apples implementation of PiP do you mean split view?

maxnowack commented 5 years ago

I think he means the Safari/iTunes PiP mode (https://support.apple.com/en-us/HT206997) and yes, this would be awesome! 😊

amitv87 commented 5 years ago

Unfortunately PiP apis are not public yet. Though there's a way to use it, I think it is only meant for video playback from the web/local file.

maxnowack commented 5 years ago

In his blog post about the hack, he mentioned that any view controller can be displayed in the pip window. So maybe it's possible :)

  • ANY view controller — not just video — can be displayed but the play/pause button cannot be removed or hidden (at least not via any accessible method).
amitv87 commented 5 years ago

Interesting, will give a try :)

maxnowack commented 5 years ago

@amitv87 any news on this? :)

amitv87 commented 5 years ago

I did try it but the end result was very flaky. Resizing the source window resulted in corrupt aspect ratio.

Also I feel that Apple's implementation has one feature which is missing in my implementation, i.e. the preview window remains pinned even when switching to full screen app / desktop. I'm trying to get this one to work

amitv87 commented 5 years ago

@amitv87 any news on this? :) https://github.com/amitv87/PiP/tree/nativePiP That's what I could do.

amitv87 commented 4 years ago

Closing this :)