onStart$info method

FutureOr<void> onStart$info(
  1. dynamic streamId,
  2. dynamic info
)
override

@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());
}