onStart method

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

@detail callback @author wangzhanqiang @brief Prompt custom encoded frames to start pushing callbacks.
After receiving this callback, you can call pushExternalEncodedVideoFrame{@link #RTCEngine#pushExternalEncodedVideoFrame} to push a custom encoded video frame to the SDK @param streamId The ID of the encoded stream that can be pushed @param streamInfo The properties of the encoded stream that can be pushed

Implementation

FutureOr<void> onStart(dynamic streamId, dynamic streamInfo) async {
  if ($instance == null || $instance is! IExternalVideoEncoderEventHandler) {
    return;
  }
  return ($instance as IExternalVideoEncoderEventHandler)
      .onStart
      ?.call(streamId.toString());
}