0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

How can Add youtube player like Whats app(PiP mode) using xcd ? #480

Closed maulikshah09 closed 4 years ago

maulikshah09 commented 4 years ago

Hello

I have an shopping app and client want to pip mode like whats app. is possible pip mode in XCD player?

SoneeJohn commented 4 years ago

Hi,

You would have to use a custom solution on iPhone (since they don't support PiP with APIs from Apple), if you're using an iPad you can use AVPlayerViewController which supports PiP (see https://developer.apple.com/documentation/avkit/avplayerviewcontroller/1615821-allowspictureinpictureplayback)

maulikshah09 commented 4 years ago

How can i don that in iphone please help for custom support

SoneeJohn commented 4 years ago

There is a 3rd party library that supports this here https://github.com/ky1vstar/PiPhone

maulikshah09 commented 4 years ago

I have already tried that but not working

SoneeJohn commented 4 years ago

Okay, what have you tried? Maybe add your work as a GitHub repo so I can have a look.