Aymen HARRATH
Aymen HARRATH

Reputation: 494

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?

Upvotes: 7

Views: 878

Answers (1)

Aymen HARRATH
Aymen HARRATH

Reputation: 494

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.

Upvotes: 1

Related Questions