7

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?

Hasya
  • 9,792
  • 4
  • 31
  • 46
Aymen HARRATH
  • 474
  • 3
  • 15
  • probably, you can't detect when done button has been tapped – Ahmad F Nov 24 '16 at 13:38
  • Done button is default behavior of AVPlayerViewController. so that will stop player. Please update your post with your code. so anyone can look into it and help you out. – Hasya Nov 25 '16 at 07:58

1 Answers1

1

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.

Aymen HARRATH
  • 474
  • 3
  • 15