Deprecated AVAudioPlayerDelegate Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in iOS 6.0
audioPlayerEndInterruption:
Called after your audio session interruption ends. (Deprecated in iOS 6.0.)
Parameters
- player
The audio player whose interruption has ended.
Discussion
If you implement the preferred audioPlayerEndInterruption:withFlags: method, it will be called instead of this one.
When an interruption ends, such as by a user ignoring an incoming phone call, the audio session for your application is automatically reactivated; at that point you can again interact with the audio player. To resume playback, call the play method.
Availability
- Available in iOS 2.2 and later.
- Deprecated in iOS 6.0.
Declared In
AVAudioPlayer.haudioPlayerEndInterruption:withFlags:
Called after your audio session interruption ends, with flags indicating the state of the audio session. (Deprecated in iOS 6.0.)
Parameters
- player
The audio player whose interruption has ended.
- flags
Flags indicating the state of the audio session when this method is called. Flags are described in
Interruption Flags.
Discussion
When an interruption ends, such as by a user ignoring an incoming phone call, the audio session for your application is automatically reactivated; at that point you can again interact with the audio player. To resume playback, call the play method.
If this delegate method receives the AVAudioSessionInterruptionFlags_ShouldResume constant in its flags parameter, the audio session is immediately ready to be used.
If you implement this method, the system does not call the audioPlayerEndInterruption: method.
Availability
- Available in iOS 4.0 and later.
- Deprecated in iOS 6.0.
See Also
Declared In
AVAudioPlayer.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)