2

An AvPlayer will pause when the app goes in the background, and stays paused when the app goes back to the foreground. Is there an easy way to make the video play again (if it was playing when the background event happened) without having to do it manually for each AVPlayer ?

I see how I can have notification observers that will play my AVPlayers and that I will have to remove when the player gets deinit, but that's annoying.

Guig
  • 9,891
  • 7
  • 64
  • 126
  • is the video working on real device? – Thripthi Haridas Feb 07 '17 at 12:53
  • I don't really see what you mean but yeah we're testing on real devices – Guig Feb 07 '17 at 17:25
  • Possible duplicate of [Swift iOS -AVPlayer Video Freezes / Pauses When App Comes Back from Background](https://stackoverflow.com/questions/48473144/swift-ios-avplayer-video-freezes-pauses-when-app-comes-back-from-background) – Cœur Sep 28 '18 at 08:53

0 Answers0