onPushPublicStreamResult method

FutureOr<void> onPushPublicStreamResult(
  1. dynamic roomId,
  2. dynamic publicStreamId,
  3. dynamic error
)
override

@deprecated since 3.60, use onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} instead. @hidden currently not available @detail callback @author qipengxiang @brief Callback of the result of publishing the WTN stream
You will be informed of the result of publishing the WTN stream by this callback after calling startPushMixedStream{@link #RTCEngine#startPushMixedStream}. @param roomId Room ID from which the WTN stream is published @param publicStreamId ID of the WTN stream @param error Code for the result of publishing the WTN stream. Refer to PublicStreamErrorCode{@link #PublicStreamErrorCode} for details.

Implementation

FutureOr<void> onPushPublicStreamResult(
    dynamic roomId, dynamic publicStreamId, dynamic error) async {
  if ($instance == null || $instance is! IRTCEngineEventHandler) {
    return;
  }
  return ($instance as IRTCEngineEventHandler).onPushPublicStreamResult?.call(
      roomId.toString(),
      publicStreamId.toString(),
      t_PublicStreamErrorCode.android_to_code($p_a
          .PublicStreamErrorCode.values
          .firstWhere((t) => t.$value == error || t.name == error)));
}