ByteRTCExternalVideoEncoderEventHandler constructor
ByteRTCExternalVideoEncoderEventHandler([
- NativeClassOptions? options
Implementation
ByteRTCExternalVideoEncoderEventHandler([NativeClassOptions? options])
: super(options == null
? const NativeClassOptions([],
className: _$namespace,
instanceType: InstanceType.manual,
bridgeKey: 'com.volcengine.rtc.hybrid_runtime',
methodMap: {
r"onStart$info": r"onStart:info:",
r"onStop$info": r"onStop:info:",
r"onRateUpdate$info$withVideoIndex$withFps$withBitRate":
r"onRateUpdate:info:withVideoIndex:withFps:withBitRate:",
r"onRequestKeyFrame$info$withVideoIndex":
r"onRequestKeyFrame:info:withVideoIndex:",
r"onActiveVideoLayer$info$withVideoIndex$withActive":
r"onActiveVideoLayer:info:withVideoIndex:withActive:"
})
: NativeClassOptions.fromMap({
...options.toMap(),
'bridgeKey': 'com.volcengine.rtc.hybrid_runtime',
})) {
registerEvent(r"onStart:info:", onStart$info);
registerEvent(r"onStop:info:", onStop$info);
registerEvent(r"onRateUpdate:info:withVideoIndex:withFps:withBitRate:",
onRateUpdate$info$withVideoIndex$withFps$withBitRate);
registerEvent(r"onRequestKeyFrame:info:withVideoIndex:",
onRequestKeyFrame$info$withVideoIndex);
registerEvent(r"onActiveVideoLayer:info:withVideoIndex:withActive:",
onActiveVideoLayer$info$withVideoIndex$withActive);
}