IClientMixedStreamObserver class

Constructors

IClientMixedStreamObserver({FutureOr<void> onClientMixedStreamEvent(MixedStreamTaskInfo info, MixedStreamType type, MixedStreamTaskEvent event)?, FutureOr<void> onMixedAudioFrame(String taskId, Uint8List audioFrame, int timeStampMs)?, FutureOr<void> onMixedVideoFrame(String taskId, IVideoFrame videoFrame)?, FutureOr<void> onMixedDataFrame(String taskId, Uint8List dataFrame)?, FutureOr<void> onMixedFirstAudioFrame(String taskId)?, FutureOr<void> onMixedFirstVideoFrame(String taskId)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onClientMixedStreamEvent FutureOr<void> Function(MixedStreamTaskInfo info, MixedStreamType type, MixedStreamTaskEvent event)?
@hidden for internal use only @detail callback @author liujingchao @brief Used for reporting events during pushing streams to CDNs. @param eventType Stream mixing and pushing status, see ByteRTCStreamMixingEvent{@link #ByteRTCStreamMixingEvent}. @param taskId Task ID @param error Errors occurring during the pushing process. See MixedStreamTaskErrorCode{@link #MixedStreamTaskErrorCode}. @param mixType Stream mixing and pushing type. See MixedStreamType{@link #MixedStreamType}.
getter/setter pair
onMixedAudioFrame FutureOr<void> Function(String taskId, Uint8List audioFrame, int timeStampMs)?
@hidden for internal use only @detail callback @author liujingchao @brief Callback with audio data in PCM after intelligent stream mixing @param taskId Task ID @param audioFrame Audio data frame in PCM @param frameNum The total sampling number in PCM @param timeStampMs The timeStamp in ms @note You will receive the callback every 10 milliseconds. Each callback carries data collected in the last 10 milliseconds.
getter/setter pair
onMixedDataFrame FutureOr<void> Function(String taskId, Uint8List dataFrame)?
@hidden for internal use only @detail callback @author liujingchao @brief This callback carries SEI data @param taskId Task ID @param dataFrame SEI data @param time Time information
getter/setter pair
onMixedFirstAudioFrame FutureOr<void> Function(String taskId)?
@hidden for internal use only
getter/setter pair
onMixedFirstVideoFrame FutureOr<void> Function(String taskId)?
@hidden for internal use only
getter/setter pair
onMixedVideoFrame FutureOr<void> Function(String taskId, IVideoFrame videoFrame)?
@hidden for internal use only @detail callback @author liujingchao @brief Callback with video data after intelligent stream mixing @param taskId Task ID @param VideoFrame Video data frame, see IVideoFrame{@link #IVideoFrame} @note - The interval between callbacks is the same with that between video frames.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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