Make AVPlayerViewController continue playing after clicking a button

I have an instance of AVPlayerViewController playing live content that I am adding as a subquery for my viewController view.

After switching the AVPlayerViewController mode to full screen mode and pressing the β€œFinish” button to exit full screen mode, the player stops playing.

Is there a way to save the player after the button action?

+6
source share
1 answer

This is not possible with AVPlayerViewController . But when using the full-screen button, the player continues to play. For my case, I ended up creating a custom player controller with an instance of AVPlayer .

+1
source

Source: https://habr.com/ru/post/1012631/


All Articles