1

I want to pause when an notification popup from the top of screen or when a call come in.

I use AVPlayer/AVPlayerItem.

How to implement it?

Leo
  • 835
  • 1
  • 12
  • 31
  • Duplicate of http://stackoverflow.com/questions/2944411/how-to-get-notified-when-the-status-bar-height-changes and http://stackoverflow.com/questions/7530934/ios-notification-of-when-a-call-is-taking-place – SwiftArchitect Dec 15 '15 at 06:03
  • I do not think they are same problems – Leo Dec 15 '15 at 06:20

2 Answers2

0

For incoming call and your app is on the foreground you can check Call events in iPhone or iOS: showing an alert when getting a call?

Community
  • 1
  • 1
marcel
  • 313
  • 4
  • 10
0

I think AVAudioSession maybe can resolve it: AVAudioSession

Leo
  • 835
  • 1
  • 12
  • 31