I built a simple player app by using AVPlayer. By tapping one button the playback starts, by tapping an other button it stops. This works fine so far.
After stopping the playback I press the home button to return to the home screen. I start another player app (f.e. Spotify) and listen to some music there.
Then I return to my own app and tap the play button and - there's suddenly no sound. The mp3 file is playing but I can't hear anything.
Is there a special function to call in viewDidAppear or something like this?