1 Reply
      Latest reply: Oct 28, 2016 1:25 AM by eskimo RSS
      renan Level 1 Level 1 (0 points)

        We have a radio player app for appleTV, that plays background music, but I can't find the API to catch the stop button press event ouside the app, or other app starting music too.

        I've tried:

                NotificationCenter.default.addObserver(self, selector: #selector(notification), name: NSNotification.Name.AVAudioSessionInterruption, object: nil)

                NotificationCenter.default.addObserver(self, selector: #selector(notification), name: NSNotification.Name.AVAudioSessionSilenceSecondaryAudioHint, object: nil)

         

        but this notifications are never called...