onStart$info method
@detail callback
@author wangzhanqiang
@brief Prompt custom encoded frames to start pushing callbacks.
After receiving this callback, you can call pushExternalEncodedVideoFrame:withEncodedVideoFrame:{@link #ByteRTCEngine#pushExternalEncodedVideoFrame:withEncodedVideoFrame} Push custom encoded video frames to the SDK
@param streamId Custom encoded stream ID
@param info Custom encoded stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}
Implementation
FutureOr<void> onStart$info(dynamic streamId, dynamic info) async {
if ($instance == null || $instance is! IExternalVideoEncoderEventHandler) {
return;
}
return ($instance as IExternalVideoEncoderEventHandler)
.onStart
?.call(streamId.toString());
}