RTCAudioSessionDelegate Protocol Reference

Conforms to NSObject
Declared in RTCAudioSession.h
RTCAudioSession_old.h

Overview

Unknown configuration error occurred.

Other Methods

– audioSessionDidBeginInterruption:

Called on a system notification thread when AVAudioSession starts an interruption event.

- (void)audioSessionDidBeginInterruption:(RTCAudioSession *)session

Discussion

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)shouldResumeSession

Discussion

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 *)previousRoute

Discussion

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 *)session

Discussion

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 *)session

Discussion

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 *)session

Discussion

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 *)session

Discussion

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)outputVolume

Discussion

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)totalNumberOfGlitches

Discussion

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)active

Discussion

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)active

Discussion

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 *)error

Discussion

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 *)session

Discussion

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)shouldResumeSession

Discussion

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 *)previousRoute

Discussion

Called when AVAudioSession changes the route.

Declared In

RTCAudioSession_old.h

– rtcaudioSessionMediaServicesWereLost: required method

Called when AVAudioSession media server terminates.

- (void)rtcaudioSessionMediaServicesWereLost:(RTCAudioSession *)session

Discussion

Called when AVAudioSession media server terminates.

Declared In

RTCAudioSession_old.h

– rtcaudioSessionMediaServicesWereReset: required method

Called when AVAudioSession media server restarts.

- (void)rtcaudioSessionMediaServicesWereReset:(RTCAudioSession *)session

Discussion

Called when AVAudioSession media server restarts.

Declared In

RTCAudioSession_old.h