ios_registerRemoteEncodedAudioFrameObserver method
Future
ios_registerRemoteEncodedAudioFrameObserver(
- id<
ByteRTCRemoteEncodedAudioFrameObserver> observer
@platform ios
@detail api
@hidden for internal use only
@brief Register the remote audio frame monitor.
After calling this method, every time the SDK detects a remote audio frame, it will call back the audio frame information to the user through onRemoteEncodedAudioFrame.
@param observer Remote AudioFrame Monitor. See IRemoteEncodedAudioFrameObserver.
@note
- This method is recommended to be called before entering the room.
- Setting the parameter to nullptr cancels registration.
- Before calling, call enableAudioDecoding{@link #ByteRTCEngine#enableAudioDecoding} to close audio decode.
Implementation
Future ios_registerRemoteEncodedAudioFrameObserver(
id<$p_i.ByteRTCRemoteEncodedAudioFrameObserver> observer) async {
$() => ($instance as $p_i.ByteRTCEngine)
.registerRemoteEncodedAudioFrameObserver(observer);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}