IAudioFrameObserver class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- IAudioFrameObserver
- Implementers
Properties
-
$instance
↔ dynamic
-
getter/setter pairinherited
-
$resource
→ NativeResource
-
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ready
→ Future<void>
-
Whether the instance is initialized
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy()
→ void
-
inherited
-
emit(String name, List args)
→ dynamic
-
inherited
-
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta])
→ Future<T>
-
Call instance method
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onCaptureMixedAudioFrame(IAudioFrame audioFrame)
→ FutureOr<void>
-
@detail callback
@brief Return the mixed audio data of the data recorded by local microphone and the audio data of
MediaPlayer and EffectPlayer.
@param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}.
-
onMixedAudioFrame(IAudioFrame audioFrame)
→ FutureOr<void>
-
@detail callback
@author wangjunzheng
@brief Returns the mixed audio data including the data recorded by local microphone and that of all remote users subscribed by the local user.
@param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}.
-
onPlaybackAudioFrame(IAudioFrame audioFrame)
→ FutureOr<void>
-
@detail callback
@author wangjunzheng
@brief Returns the mixed audio data of all remote users subscribed by the local user.
@param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}.
-
onRecordAudioFrame(IAudioFrame audioFrame)
→ FutureOr<void>
-
@detail callback
@author wangjunzheng
@brief Returns the audio data recorded by local microphone.
@param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}.
-
onRemoteUserAudioFrame(String streamId, StreamInfo streamInfo, IAudioFrame audioFrame)
→ FutureOr<void>
-
@detail callback
@author wangjunzheng
@brief Returns the audio data of one remote user.
@param streamId Remote stream ID.
@param streamInfo Remote stream information. See StreamInfo{@link #StreamInfo}.
@param audioFrame Audio data. See IAudioFrame{@link #IAudioFrame}.
@note This callback works on the playback thread. Don't do anything time-consuming in this callback, or it may affect the entire audio playback chain.
-
registerEvent(String name, dynamic method)
→ void
-
inherited
-
sendInstanceGet<T>(String property)
→ Future<T>
-
Get instance property
inherited
-
sendInstancePropertiesGet(dynamic nativeClass)
→ Future<Map<String, dynamic>>
-
Get instance properties
inherited
-
sendInstanceSet(String property, dynamic value)
→ Future<void>
-
Set instance property
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateInstance(dynamic instance)
→ void
-
inherited
-
updateResource(NativeResource resource)
→ void
-
inherited