Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make AVPlayerViewController keep playing after done button pressed

I have an instance of AVPlayerViewController playing a live broadcast content that I am adding as a subview to my viewController's view.

After switching the AVPlayerViewController to fullscreen mode and tapping Done button to exit fullscreen the player stops playing.

Is there any way to keep the player playing after done button action?

like image 832
Aymen HARRATH Avatar asked Nov 24 '16 13:11

Aymen HARRATH


1 Answers

This is not possible with AVPlayerViewController. But when using fullscreen button the player keeps playing. For my case I ended up by creating a custom player controller with an AVPlayer instance.

like image 93
Aymen HARRATH Avatar answered Nov 06 '22 00:11

Aymen HARRATH