rtcEngine$onPushPublicStreamResult$publicStreamId$errorCode method
- dynamic engine,
- dynamic roomId,
- dynamic streamId,
- dynamic errorCode,
@deprecated since 3.60, use rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode} instead.
@hidden currently not available
@detail callback
@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:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig}.
@param engine engine instance
@param roomId Room ID from which the WTN stream is published
@param streamId ID of the WTN stream
@param errorCode Result and status code of publishing the WTN stream. Refer to ByteRTCPublicStreamErrorCode{@link #ByteRTCPublicStreamErrorCode} for details.
Implementation
FutureOr<void> rtcEngine$onPushPublicStreamResult$publicStreamId$errorCode(
dynamic engine,
dynamic roomId,
dynamic streamId,
dynamic errorCode) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onPushPublicStreamResult?.call(
roomId.toString(),
streamId.toString(),
t_PublicStreamErrorCode.ios_to_code($p_i
.ByteRTCPublicStreamErrorCode.values
.firstWhere((t) => t.$value == errorCode || t.name == errorCode)));
}