ByteRTCClientMixedStreamDelegate constructor
ByteRTCClientMixedStreamDelegate([
- NativeClassOptions? options
Implementation
ByteRTCClientMixedStreamDelegate([NativeClassOptions? options])
: super(options == null
? const NativeClassOptions([],
className: _$namespace,
instanceType: InstanceType.manual,
bridgeKey: 'com.volcengine.rtc.hybrid_runtime',
methodMap: {
r"onClientMixedStreamEvent$withTaskInfo$withMixedType$withErrorCode":
r"onClientMixedStreamEvent:withTaskInfo:withMixedType:withErrorCode:",
r"onMixedFirstAudioFrame": r"onMixedFirstAudioFrame:",
r"onMixedFirstVideoFrame": r"onMixedFirstVideoFrame:",
r"onMixedAudioFrame$withTimestamp$withTaskId":
r"onMixedAudioFrame:withTimestamp:withTaskId:",
r"onMixedVideoFrame$withTaskId":
r"onMixedVideoFrame:withTaskId:",
r"onMixedDataFrame$withTaskId":
r"onMixedDataFrame:withTaskId:"
})
: NativeClassOptions.fromMap({
...options.toMap(),
'bridgeKey': 'com.volcengine.rtc.hybrid_runtime',
})) {
registerEvent(
r"onClientMixedStreamEvent:withTaskInfo:withMixedType:withErrorCode:",
onClientMixedStreamEvent$withTaskInfo$withMixedType$withErrorCode);
registerEvent(r"onMixedFirstAudioFrame:", onMixedFirstAudioFrame);
registerEvent(r"onMixedFirstVideoFrame:", onMixedFirstVideoFrame);
registerEvent(r"onMixedAudioFrame:withTimestamp:withTaskId:",
onMixedAudioFrame$withTimestamp$withTaskId);
registerEvent(
r"onMixedVideoFrame:withTaskId:", onMixedVideoFrame$withTaskId);
registerEvent(r"onMixedDataFrame:withTaskId:", onMixedDataFrame$withTaskId);
}