IAudioFrameObserver class

Inheritance
  • Object
  • NativeClass
  • NativeObserverClass
  • IAudioFrameObserver
Implementers

Constructors

IAudioFrameObserver([NativeClassOptions? options])

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 @author huanghao @brief 返回本地麦克风录制的音频数据,本地 MediaPlayer / EffectPlayer 播放音频文件混音后的音频数据。 @param audioFrame 音频数据, 参看 IAudioFrame{@link #IAudioFrame}。
onMixedAudioFrame(IAudioFrame audioFrame) FutureOr<void>
@detail callback @author wangjunzheng @brief 返回本地麦克风录制和订阅的所有远端用户混音后的音频数据 @param audioFrame 音频数据, 参看 IAudioFrame{@link #IAudioFrame}。
onPlaybackAudioFrame(IAudioFrame audioFrame) FutureOr<void>
@detail callback @author wangjunzheng @brief 返回订阅的所有远端用户混音后的音频数据。 @param audioFrame 音频数据, 参看 IAudioFrame{@link #IAudioFrame}。
onRecordAudioFrame(IAudioFrame audioFrame) FutureOr<void>
@detail callback @author wangjunzheng @brief 返回麦克风录制的音频数据 @param audioFrame 音频数据, 参看 IAudioFrame{@link #IAudioFrame}。
onRemoteUserAudioFrame(String streamId, StreamInfo streamInfo, IAudioFrame audioFrame) FutureOr<void>
@detail callback @author wangjunzheng @brief 返回远端单个用户的音频数据 @param streamId 远端流 ID。 @param streamInfo 远端流信息,参看 StreamInfo{@link #StreamInfo}。 @param audioFrame 音频数据,参看 IAudioFrame{@link #IAudioFrame}。 @note 此回调在播放线程调用。不要在此回调中做任何耗时的事情,否则可能会影响整个音频播放链路。
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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

codegen_$namespace → dynamic
no setter