RTCAudioSessionDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | RTCAudioSession.h RTCAudioSession_old.h |
Other Methods
– audioSessionDidBeginInterruption:
Called on a system notification thread when AVAudioSession starts an interruption event.
- (void)audioSessionDidBeginInterruption:(RTCAudioSession *)sessionDiscussion
Called on a system notification thread when AVAudioSession starts an interruption event.
Declared In
RTCAudioSession.h
– audioSessionDidEndInterruption:shouldResumeSession:
Called on a system notification thread when AVAudioSession ends an interruption event.
- (void)audioSessionDidEndInterruption:(RTCAudioSession *)session shouldResumeSession:(BOOL)shouldResumeSessionDiscussion
Called on a system notification thread when AVAudioSession ends an interruption event.
Declared In
RTCAudioSession.h
– audioSessionDidChangeRoute:reason:previousRoute:
Called on a system notification thread when AVAudioSession changes the route.
- (void)audioSessionDidChangeRoute:(RTCAudioSession *)session reason:(AVAudioSessionRouteChangeReason)reason previousRoute:(AVAudioSessionRouteDescription *)previousRouteDiscussion
Called on a system notification thread when AVAudioSession changes the route.
Declared In
RTCAudioSession.h
– audioSessionMediaServerTerminated:
Called on a system notification thread when AVAudioSession media server terminates.
- (void)audioSessionMediaServerTerminated:(RTCAudioSession *)sessionDiscussion
Called on a system notification thread when AVAudioSession media server terminates.
Declared In
RTCAudioSession.h
– audioSessionMediaServerReset:
Called on a system notification thread when AVAudioSession media server restarts.
- (void)audioSessionMediaServerReset:(RTCAudioSession *)sessionDiscussion
Called on a system notification thread when AVAudioSession media server restarts.
Declared In
RTCAudioSession.h
– audioSessionDidStartPlayOrRecord:
Called on a WebRTC thread when the audio device is notified to begin playback or recording.
- (void)audioSessionDidStartPlayOrRecord:(RTCAudioSession *)sessionDiscussion
Called on a WebRTC thread when the audio device is notified to begin playback or recording.
Declared In
RTCAudioSession.h
– audioSessionDidStopPlayOrRecord:
Called on a WebRTC thread when the audio device is notified to stop playback or recording.
- (void)audioSessionDidStopPlayOrRecord:(RTCAudioSession *)sessionDiscussion
Called on a WebRTC thread when the audio device is notified to stop playback or recording.
Declared In
RTCAudioSession.h
– audioSession:didChangeOutputVolume:
Called when the AVAudioSession output volume value changes.
- (void)audioSession:(RTCAudioSession *)audioSession didChangeOutputVolume:(float)outputVolumeDiscussion
Called when the AVAudioSession output volume value changes.
Declared In
RTCAudioSession.h
– audioSession:didDetectPlayoutGlitch:
Called when the audio device detects a playout glitch. The argument is the number of glitches detected so far in the current audio playout session.
- (void)audioSession:(RTCAudioSession *)audioSession didDetectPlayoutGlitch:(int64_t)totalNumberOfGlitchesDiscussion
Called when the audio device detects a playout glitch. The argument is the number of glitches detected so far in the current audio playout session.
Declared In
RTCAudioSession.h
– audioSession:willSetActive:
Called when the audio session is about to change the active state.
- (void)audioSession:(RTCAudioSession *)audioSession willSetActive:(BOOL)activeDiscussion
Called when the audio session is about to change the active state.
Declared In
RTCAudioSession.h
– audioSession:didSetActive:
Called after the audio session sucessfully changed the active state.
- (void)audioSession:(RTCAudioSession *)audioSession didSetActive:(BOOL)activeDiscussion
Called after the audio session sucessfully changed the active state.
Declared In
RTCAudioSession.h
– audioSession:failedToSetActive:error:
Called after the audio session failed to change the active state.
- (void)audioSession:(RTCAudioSession *)audioSession failedToSetActive:(BOOL)active error:(NSError *)errorDiscussion
Called after the audio session failed to change the active state.
Declared In
RTCAudioSession.h
Other Methods
– rtcaudioSessionDidBeginInterruption:
required method
Called when AVAudioSession starts an interruption event.
- (void)rtcaudioSessionDidBeginInterruption:(RTCAudioSession *)sessionDiscussion
Called when AVAudioSession starts an interruption event.
Declared In
RTCAudioSession_old.h
– rtcaudioSessionDidEndInterruption:shouldResumeSession:
required method
Called when AVAudioSession ends an interruption event.
- (void)rtcaudioSessionDidEndInterruption:(RTCAudioSession *)session shouldResumeSession:(BOOL)shouldResumeSessionDiscussion
Called when AVAudioSession ends an interruption event.
Declared In
RTCAudioSession_old.h
– rtcaudioSessionDidChangeRoute:reason:previousRoute:
required method
Called when AVAudioSession changes the route.
- (void)rtcaudioSessionDidChangeRoute:(RTCAudioSession *)session reason:(AVAudioSessionRouteChangeReason)reason previousRoute:(AVAudioSessionRouteDescription *)previousRouteDiscussion
Called when AVAudioSession changes the route.
Declared In
RTCAudioSession_old.h
– rtcaudioSessionMediaServicesWereLost:
required method
Called when AVAudioSession media server terminates.
- (void)rtcaudioSessionMediaServicesWereLost:(RTCAudioSession *)sessionDiscussion
Called when AVAudioSession media server terminates.
Declared In
RTCAudioSession_old.h
– rtcaudioSessionMediaServicesWereReset:
required method
Called when AVAudioSession media server restarts.
- (void)rtcaudioSessionMediaServicesWereReset:(RTCAudioSession *)sessionDiscussion
Called when AVAudioSession media server restarts.
Declared In
RTCAudioSession_old.h