简体   繁体   中英

iOS notification for built-in timer app “stop playing”

My radio app support background play, base on AVPlayer and AVAudioSession.

Some user said: The iOS timer app "Stop Playing" should stop the audio.

I have no idea to detect timer app trigger.

Any idea?

I tried AVAudioSessionInterruptionNotification, but nothing happen.

Finally, I found it.

When built-in timer app countdown to zero,it will trigger the remoteControlReceivedWithEvent:
and the event.subtype is UIEventSubtypeRemoteControlStop

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM