Data types

更新时间:
复制 MD 格式

This topic describes the data types that are used in the Android software development kit (SDK).

Table of contents

Data typeDescriptionMinimum supported version
AliRtcPluginErrorCodePlugin error codes.2.1
AliRtcPluginProcessCodeReturn codes for plugin data processing.2.1
AliRtcPluginDataTypePlugin data types.2.1
AliRtcPluginOperationTypePlugin data processing types.2.1
AliRtcAudioTypeAudio types.2.2
AliRtcAudioPlayingErrorCodeError codes for audio accompaniment playback.1.17
AliRtcAudioPlayingStateCodeThe playback state of the audio accompaniment.1.17
AliRtcAudioVolumeUser volume information.1.17.1
AliRtcAudioSampleAudio samples.2.2
AliRtcVideoSampleVideo samples.2.2
AliRtcVideoSourceTypeVideo source types.2.2
AliRTCSdkChannelProfileChannel modes.1.17
AliRTCSdkClientRoleUser roles.1.17
AliRtcRawDataStreamTypeRaw data stream types.2.2
AliRtcRawDataFrameExternal video frame data.2.2
AliRtcStatsSession statistics.2.2
AliRtcLocalVideoStatsLocal video statistics.2.2
AliRtcRemoteVideoStatsRemote video statistics.2.2
AliRtcLocalAudioStatsLocal audio statistics.2.2
AliRtcRemoteAudioStatsRemote audio statistics.2.2
AliRtcFeedbackTypeSDK feedback types.1.17
AliRtcChannelRelayEventCross-channel forwarding events.2.1
AliRtcChannelRelayStateCross-channel forwarding states.2.1
AliRtcChannelRelayConfigurationCross-channel forwarding settings.2.1
AliRtcVideoObserPositionVideo data output positions.2.2
AliRtcVideoFormatVideo data output formats.2.2
AliRtcConnectionStatusNetwork connection states.2.1
AliRtcConnectionStatusChangeReasonReasons for network connection state changes.2.2
AliRtcVideoTrackVideo stream types.1.1
AliRtcPublishStateStream ingest states.2.1
AliRtcSubscribeStateSubscription states.2.1
AliRtcUserOfflineReasonReasons why a user goes offline.2.1
AliRtcVideoStreamTypeCamera stream types (high- and low-definition).2.1
AliRtcAudioTrackAudio stream types.1.1
AliRTCCameraTypeCamera directions.1.1
AliRtcNetworkQualityNetwork types.2.2
AliRtcRenderModeRendering modes.1.1
AliRtcRenderMirrorModeImage modes.1.11
AliRtcRotationModeRotation angles.2.1
AliRtcLogLevelLog levels.2.2
AliRtcAudioNumChannelAudio channel types.1.17.13
AliRtcAudioSampleRateAudio sample rate types.1.17
AliRtcRecordTypeRecord types.1.17
AliRtcRecordFormatRecord formats.1.17
AliRtcAudioQualityThe audio quality of recorded audio files.1.17
AliRtcVideoQualityThe video quality of recorded video files.1.17
AliRtcAudioProfileAudio quality modes.2.1
AliRtcAudioScenarioAudio scenario modes.2.1
AliRtcMuteLocalAudioModeLocal mute modes.2.1
AliRtcRecordAudioConfigParameter settings for recording audio files.1.17
AliRtcRecordVideoConfigParameter settings for recording video files.1.17
AliRtcBeautyConfigBasic retouching settings.1.17
AliRtcOnByeTypeEnumerations for OnBye types.2.1
AliRtcAudioEffectVoiceChangerModeVoice changer effect modes.2.1
AliRtcAudioEffectReverbModeReverb effect modes.2.1
AliRtcAudioEffectReverbParamTypeReverb effect parameters.2.1
AliRtcAudioRouteTypeAudio routing types.2.1
AliRtcRemoteTextureInfoRemote user texture information.2.1
AliRtcVideoCanvasRendering canvas.2.2
AliRtcAudioRouteTypeBypass stream ingest task states.2.1
AliRtcRectPositionThe position and size of the watermark image.2.2
AliRtcWatermarkConfigSettings for the watermark image.2.1
AliRtcTextureInfoTexture information.2.1
AliEngineCameraCapturerConfigurationCamera capture preference properties.2.1
AliRtcCaptureOutputPreferenceCamera capture preferences.2.2
AliRtcCameraDirectionCamera directions.2.2
AliRtcVideoEncoderFrameRateVideo encoding frame rates.2.1
AliRtcVideoEncoderBitrateVideo encoding bitrates.2.1
AliRtcVideoEncoderMirrorModeVideo mirroring encoding mode.2.1
AliRtcVideoEncoderOrientationModeEncoded video rotation modes.2.1
AliRtcVideoDimensionsVideo resolutions.2.2
AliRtcVideoEncoderConfigurationVideo encoding properties.2.1
AliRtcScreenShareEncoderConfigurationScreen sharing encoding properties.2.1
AliRtcAuthInfoAuthentication information.1.1
AliRtcTranscodingUserBypass user information for live streaming.2.1
AliRtcTranscodingUserPaneBypasses user panel information for live streaming.2.1
AliRtcTranscodingPaneLive transcoding custom user pane information.2.1
AliRtcTranscodingLayoutThe user-defined layout for bypass live streaming.2.1
AliRtcLiveTranscodingLive streaming bypass configuration.2.1
AliRtcRemoteUserInfoRemote user information.1.17
AliRtcVideoReasonThe reason that triggers the change in the video stream state.2.4
AliRtcVideoStateChanges in the video stream state.2.4
AliRtcTrascodingPublishTaskStatusStatus of the bypass live stream ingest task.2.4
AliEngineLiveTranscodingErrorCodeError codes for bypassing stream ingest.2.4
AliRtcLiveTranscodingStateLive stream bypass status2.4
AliRtcLiveTranscodingMediaProcessModeBypass pattern for ApsaraVideo Media Processing during live streaming.2.4
AliRtcLiveTranscodingCropModeBypasses live stream clipping.2.4
AliRtcLiveTranscodingFontTypeBypasses the font for live streaming.2.4
AliRtcLiveTranscodingSegmentTypeBypass live stream input type.2.4
AliRtcLiveTranscodingAudioSampleRateBypass the audio sampling rate for live streaming.2.4
AliRtcLiveTranscodingTaskProfileBilling details for bypass live streaming.2.4
AliRtcLiveTranscodingSourceTypeBypassed live video stream type2.4
AliRtcLiveTranscodingStreamTypeLive transcoding stream types.2.4
AliRtcLiveTranscodingMixModeLive streaming bypass mode.2.4
AliRtcVideoObserAlignmentData alignment types for raw data callbacks.2.4
AliRtcLiveTranscodingEncodeParamBypasses the encoding parameters for live streaming.2.4
AliRtcLiveTranscodingMixParamBypass parameters for live stream mixing.2.4
AliRtcLiveTranscodingParamBypass parameters for live streaming2.4
AliRtcLiveTranscodingSingleParamSingle-stream parameters for bypass live streaming.2.4
TranscodingClockWidgetBypasses the clock widget for live streaming.2.4
TranscodingUserBypasses user information for live streaming.2.4
TranscodingTextBypass text messages in live streams.2.4
TranscodingImageBypasses the image data of the live stream.2.4
DisplayTypeImage display modes.2.4

Details

  • AliRtcPluginErrorCode: Error codes for the plugin.
    EnumerationDescription
    AliRtcPluginErrorCodeSuccesSuccess.
    AliRtcPluginErrorCodeFailedFailed.
    AliRtcPluginErrorNoFindPluginThe plugin is not found.
    AliRtcPluginErrorParameterErrorA parameter error occurred.
    AliRtcPluginErrorLoadErrorFailed to load the plugin.
    AliRtcPluginErrorCreateErrorPlugin initialization failed.
    AliRtcPluginErrorInitTokenErrorAuthentication failed.
  • AliRtcPluginProcessCode: Return codes for plugin data processing.
    EnumerationDescription
    AliRtcPluginProcessCodeFailedData processing failed.
    AliRtcPluginProcessCodeSuccessData processing succeeded.
    AliRtcPluginProcessCodeMemoryChangeData processing succeeded. The memory size of the data has changed.
  • AliRtcPluginDataType: Data types for the plugin.
    EnumerationDescription
    AliRtcPluginDataTypeSharedShared type.
    AliRtcPluginDataTypeVideoVideo.
    AliRtcPluginDataTypeAudioAudio.
    AliRtcPluginDataTypeEncryptionEncryption.
    AliRtcPluginDataTypeMaxA placeholder with no specific meaning.
  • AliRtcPluginOperationType: Data processing types for the plugin.
    EnumerationDescription
    AliRtcPluginSharedShared type.
    AliRtcPluginPreOperationPre-processing.
    AliRtcPluginPostOperationPost-processing.
    AliRtcPluginEncodeOperationEncoder.
    AliRtcPluginDecodeOperationDecoder.
    AliRtcPluginRecordCapture.
    AliRtcPluginRenderRendering.
  • AliRtcAudioType: The types of audio.
    EnumerationDescription
    AliRtcPubObserverAudio data that is processed using the 3A algorithm.
    AliRtcSubObserverThe mixed audio data of the remote users to which you are currently subscribed.
    AliRtcRawDataObserverRaw audio data captured locally.
    AliRtcVolumeDataObserverRaw volume data.
  • AliRtcAudioPlayingErrorCode: Error codes for audio accompaniment playback.
    EnumerationDescription
    AliRtcAudioPlayingNoErrorNormal state.
    AliRtcAudioPlayingOpenFailedFailed to open the file.
    AliRtcAudioPlayingDecodeFailedEncoding failed.
  • AliRtcAudioPlayingStateCode: The playback state of the audio accompaniment.
    EnumerationDescription
    AliRtcAudioPlayingStartedPlaying.
    AliRtcAudioPlayingStoppedPlayback is stopped.
    AliRtcAudioPlayingPausedPlayback is paused.
    AliRtcAudioPlayingResumedPlayback is resumed.
    AliRtcAudioPlayingEndedPlayback is complete.
    AliRtcAudioPlayingBufferingBuffering.
    AliRtcAudioPlayingBufferingEndBuffering is complete.
    AliRtcAudioPlayingFailedPlayback failed.
  • AliRtcAudioVolume: The volume information of a user.
    ParameterTypeDescription
    mUserIdStringThe ID of the current user. Valid values:
    • 0: Local
    • 1: the mixed remote stream.
    • Other values: the ID of a remote user.
    mVolumeintThe volume in the current callback.
    mSpeechstateintThe speaking status of the user. Valid values:
    • 0: The user is not speaking.
    • 1: The user is speaking.
  • AliRtcAudioSample: Audio samples.
    ParameterTypeDescription
    dataPtrlongThe audio data.
    databyte[]The sample data of the audio frame.
    numSamplesintThe number of sample points for each sound channel.
    bytesPerSampleintThe number of bytes per sample point. For Pulse-Code Modulation (PCM), the value is typically 16 bits, which is equivalent to 2 bytes.
    numChannelsintThe number of sound channels. Valid values:
    • 1: mono.
    • 2: stereo.
    sampleRateintThe sample rate of each sound channel.
    samplesPerSecintThe number of sample points per second for each sound channel. This is the sample rate.
  • AliRtcVideoSample: Video samples.
    ParameterTypeDescription
    dataFrameYlongA pointer to the Y component.
    dataFrameUlongA pointer to the U component.
    dataFrameVlongA pointer to the V component.
    formatAliRtcVideoFormatThe format of the video frame.
    widthintThe width of the video frame.
    heightintThe height of the video frame.
    strideYintThe stride of the Y buffer in the YUV data.
    strideUintThe stride of the U buffer in the YUV data.
    strideVintThe stride of the V buffer in the YUV data.
    rotateintThe rotation angle of the video frame.
    extraDatalongAn additional field. You can ignore this parameter if you do not require customization.
  • AliRtcVideoSourceType: The types of video sources.
    Enumeration NameDescription
    AliRTCSdkVideoSourceCameraTypeCamera stream.
    AliRTCSdkVideoSourceScreenShareTypeScreen sharing stream.
  • AliRTCSdkChannelProfile: The modes for a channel.
    Enumeration NameDescription
    AliRTCSdkCommunicationCommunication mode.
    AliRTCSdkInteractiveLiveInteractive mode.
    AliRTCSdkInteractiveWithLowLatencyLiveLow-latency interactive live streaming mode.
  • AliRTCSdkClientRole: The roles of a user.
    Enumeration nameDescription
    AliRTCSdkInteractiveStreamer role.
    AliRTCSdkLiveViewer role.
  • AliRtcRawDataStreamType: The types of raw data streams.
    Enumeration NameDescription
    AliRTCSdkStreameTypeCaptureCamera stream.
    AliRTCSdkStreameTypeScreenScreen stream.
  • AliRtcRawDataFrame: Data for external video frames.
    ParameterTypeDescription
    formatAliRtcVideoFormatThe video data type.
    widthintThe width of the frame.
    heightintThe height of the frame.
    rotationintThe angle of the frame.
    videoFrameLengthintThe length of the frame.
    lineSizeint[]The storage of the video frame. For more information, see the following table.
    framebyte[]The YUV byte data of the video.
    cropLeftintThe number of pixels to crop from the left.
    cropTopintThe number of pixels to crop from the top.
    cropRightintThe number of pixels to crop from the right.
    cropBottomintThe number of pixels to crop from the bottom.
    timeStamplongThe timestamp of the frame. Unit: milliseconds.
    textureIdintThe texture ID of the frame.
    transformMatrixfloat[]The extra transformation for the texture frame.
    eglContext14EGLContextThe thread-related context variable of OpenGL.
    Video frame formatVideo frame storage
    YUV
    • lineSize[0] = width; // Y
    • lineSize[1] = width/2; // U
    • lineSize[2] = width/2; // V
    • lineSize[3] = 0;
    RGBA
    • lineSize[0] = width; // R
    • lineSize[1] = width; // G
    • lineSize[2] = width; // B
    • lineSize[3] = width; // A
  • AliRtcStats: Statistics for a session.
    ParameterTypeDescription
    sentKbitratelongThe sending bitrate.
    rcvdKbitratelongThe receiving bitrate.
    sentByteslongThe number of bytes sent.
    rcvdByteslongThe number of bytes received.
    systemCpuUsagefloatThe system CPU usage.
    cpuUsagefloatThe CPU usage of the RTC process.
    videoRcvdKbitratelongThe video receiving bitrate.
    videoSentKbitratelongThe video sending bitrate.
    callDurationlongThe call duration. Unit: seconds.
    sentLossRatelongThe packet loss rate from the client to the server.
    sentLossPktslongThe number of lost packets from the client to the server.
    sentExpectedPktslongThe total number of packets sent from the client to the server.
    rcvdLossRatelongThe downstream packet loss rate from the client to the server.
    rcvdLossPktslongThe number of downstream lost packets from the client to the server.
    rcvdExpectedPktslongThe total number of downstream packets from the client to the server.
    lastmileDelaylongThe latency. Unit: milliseconds.
  • AliRtcLocalVideoStats: Statistics for the local video.
    ParameterTypeDescription
    userIdStringThe ID of the local user.
    trackAliRtcVideoTrackThe stream type.
    sentBitrateintThe publishing bitrate.
    sentFpsintThe publishing frame rate.
    encodeFpsintThe encoding frame rate.
  • AliRtcRemoteVideoStats: Statistics for a remote video.
    ParameterTypeDescription
    userIdStringThe ID of the remote user.
    trackAliRtcVideoTrackThe video stream type.
    widthintThe width of the video frame.
    heightintThe height of the video frame.
    decodeFpsintThe output frame rate of the encoder.
    renderFpsintThe output frame rate of the renderer.
    frozenTimesintThe number of stutters.
  • AliRtcLocalAudioStats: Statistics for the local audio.
    ParameterTypeDescription
    trackAliRtcVideoTrackThe audio stream type.
    sentBitrateintThe sending bitrate.
    sentSamplerateintThe sending sample rate.
    numChannelintThe number of sound channels.
  • AliRtcRemoteAudioStats: Statistics for a remote audio.
    ParameterTypeDescription
    userIdStringThe user ID.
    trackAliRtcVideoTrackThe audio stream type.
    qualityintThe audio quality.
    audioLossRateintThe audio packet loss rate.
    rcvdBitrateintThe receiving bitrate.
    totalFrozenTimesintThe number of stutters.
    network_transport_delayintThe network latency from the audio sender to the receiver. Unit: milliseconds.
    jitter_buffer_delayintThe network latency from the receiver to the anti-jitter buffer. Unit: milliseconds.
  • AliRtcFeedbackType: The types of SDK feedback.
    Enumeration nameDescription
    AliRtcFeedbackVideoDeviceFailVideo device issue.
    AliRtcFeedbackVideoNotRenderNo video playback.
    AliRtcFeedbackAudioDeviceFailAudio device issue.
    AliRtcFeedbackAudioNotRenderNo audio playback.
    AliRtcFeedbackAudioEchoErrorAbnormal audio echo.
    AliRtcFeedbackChannelTypeErrorAbnormal meeting status: An abnormal status that occurs, for example, when joining or leaving a meeting.
    AliRtcFeedbackSdkTypeErrorOther abnormal SDK states.
    AliRtcFeedbackNetworkUnfluentNetwork stuttering issue.
    AliRtcFeedbackVideoBlurringVideo definition issue.
    AliRtcFeedbackUnkonwUnknown type.
  • AliRtcChannelRelayEvent: Events for cross-channel forwarding.
    Enumeration nameDescription
    AliRtcChannelRelayStartStart.
    AliRtcChannelRelayUpdateUpdate.
    AliRtcChannelRelayStopStop.
  • AliRtcChannelRelayState: The states of cross-channel forwarding.
    Enumeration nameDescription
    AliRtcChannelRelayStateInitInitialization.
    AliRtcChannelRelayStateConnectingConnecting.
    AliRtcChannelRelayStateRunningForwarding.
    AliRtcChannelRelayStateFailureForwarding failed.
  • AliRtcChannelRelayConfiguration: Settings for cross-channel stream forwarding.
    ParameterTypeDescription
    mDestChannelInfosMap<String,AliRtcAuthInfo>The collection of authentication information for the destination channels.
  • AliRtcVideoObserPosition: The output positions of video data.
    Enumeration NameDescription
    AliRtcPositionPostCaptureCaptured data.
    AliRtcPositionPreRenderStream pulling data.
    AliRtcPositionPreEncoderPre-encoding data.
  • AliRtcVideoFormat: The output formats of video data.
    EnumerationDescription
    AliRtcVideoFormatBGRABGRA.
    AliRtcVideoFormatI420I420.
    AliRtcVideoFormatNV21NV21.
    AliRtcVideoFormatNV12NV12.
    AliRtcVideoFormatRGBARGBA.
    AliRtcVideoFormatI422I422.
    AliRtcVideoFormatARGBARGB.
    AliRtcVideoFormatABGRABGR.
    AliRtcVideoFormatRGB24RGB24.
    AliRtcVideoFormatBGR24BGR24.
    AliRtcVideoFormatRGB565RGB565.
    AliRtcVideoFormatTextureOESTextureOES.
    AliRtcVideoFormatTexture2DTexture2D.
  • AliRtcConnectionStatus: The states of a network connection.
    EnumerationDescription
    AliRtcConnectionStatusInitInitialization is complete.
    AliRtcConnectionStatusDisconnectedThe network connection is disconnected.
    AliRtcConnectionStatusConnectingEstablishing a network connection.
    AliRtcConnectionStatusConnectedThe network is connected.
    AliRtcConnectionStatusReconnectingRe-establishing a network connection.
    AliRtcConnectionStatusFailedThe network connection failed.
  • AliRtcConnectionStatusChangeReason: The reasons for changes in the network connection state.
    EnumerationDescription
    AliRtcConnectionChangedDummyReasonUnknown reason.
    AliRtcConnectionMediaPathChangedThe media channel has changed.
    AliRtcConnectionSignalingHeartbeatTimeoutHeartbeat timeout.
    AliRtcConnectionSignalingHeartbeatAliveHeartbeat recovered.
    AliRtcConnectionSignalingHttpDnsResolvedDNS resolution succeeded.
    AliRtcConnectionSignalingHttpDnsFailureDNS resolution failed.
    AliRtcConnectionSignalingGslbFailureGSLB request failed.
    AliRtcConnectionSignalingGslbSucccessGSLB request succeeded.
    AliRtcConnectionSignalingJoinRoomFailureFailed to join the channel.
    AliRtcConnectionSignalingJoinRoomSuccessJoined the channel.
    AliRtcConnectionSignalingLeaveRoomLeft the channel.
    AliRtcConnectionSignalingConnectingEstablishing a signaling connection.
  • AliRtcVideoTrack: The types of video streams.
    EnumerationDescription
    AliRtcVideoTrackNoNo video stream.
    AliRtcVideoTrackCameraCamera stream.
    AliRtcVideoTrackScreenScreen sharing stream.
    AliRtcVideoTrackBothShare your camera and screen.
  • AliRtcPublishState: The states of stream ingest.
    Enumeration NameDescription
    AliRtcStatsPublishIdleInitial state.
    AliRtcStatsNoPublishNot ingesting a stream.
    AliRtcStatsPublishingIngesting a stream.
    AliRtcStatsPublishedStream ingested.
  • AliRtcSubscribeState: The states of a subscription.
    EnumerationDescription
    AliRtcStatsSubscribeIdleInitial state.
    AliRtcStatsNoSubscribeNot subscribed.
    AliRtcStatsSubscribingSubscribing.
    AliRtcStatsSubscribedSubscribed.
  • AliRtcUserOfflineReason: The reasons why a user goes offline.
    EnumerationDescription
    AliRtcUserOfflineQuitThe user chooses to leave.
    AliRtcUserOfflineDroppedThe user is dropped due to a timeout. This occurs when no data packets are received from the user for an extended period.
    AliRtcUserOfflineBecomeAudienceThis is triggered when the user role switches from streamer to viewer.
  • AliRtcVideoStreamType: The types of camera streams, such as high-definition and low-definition.
    EnumerationDescription
    AliRtcVideoStreamTypeNoneNo video stream.
    AliRtcVideoStreamTypeHighLarge stream
    AliRtcVideoStreamTypeLowSmall stream
  • AliRtcAudioTrack: The types of audio streams.
    Enumeration NameDescription
    AliRtcAudioTrackNoNo audio stream.
    AliRtcAudioTrackMicMicrophone stream.
  • AliRTCCameraType: The directions of the camera.
    Enumeration nameDescription
    AliRTCCameraBackRear camera.
    AliRTCCameraFrontFront camera.
    AliRTCCameraUsbUSB camera.
    AliRTCCameraInvalidInvalid camera.
  • AliRtcNetworkQuality: The quality of the network.
    EnumerationDescription
    AliRtcNetworkExcellentThe network quality is excellent. The stream is smooth and has high definition.
    AliRtcNetworkGoodThe network quality is good. The smoothness and definition are similar to the excellent level.
    AliRtcNetworkPoorA poor network causes minor degradation in audio and video smoothness and definition, but communication is unaffected.
    AliRtcNetworkBadThe network quality is bad. The video experiences severe stuttering, but audio communication remains normal.
    AliRtcNetworkVeryBadThe network quality is very bad. Communication is nearly impossible.
    AliRtcNetworkDisconnectedThe network is disconnected.
    AliRtcNetworkUnknowUnknown reason.
  • AliRtcRenderMode: The modes for rendering.
    Enumeration nameDescription
    AliRtcRenderModeAutoAutomatic.
    AliRtcRenderModeStretchStretches the video to fill the view. The aspect ratio is not maintained.
    AliRtcRenderModeFillScales the video while maintaining the aspect ratio. Black bars are added to fill the remaining space.
    AliRtcRenderModeClipScales the video while maintaining the aspect ratio and crops the video to fit the view.
  • AliRtcRenderMirrorMode: The modes for an image.
    EnumerationDescription
    AliRtcRenderMirrorModeOnlyFrontOnly the front camera preview is mirrored. Other views are not mirrored.
    AliRtcRenderMirrorModeAllEnabledAll images
    AliRtcRenderMirrorModeAllDisableNo views are mirrored.
  • AliRtcRotationMode: The angles of rotation.
    Enumeration nameDescription
    AliRtcRotationMode_0No rotation.
    AliRtcRotationMode_90Rotate 90 degrees.
    AliRtcRotationMode_180Rotate 180 degrees.
    AliRtcRotationMode_270Rotate 270 degrees.
  • AliRtcLogLevel: The levels for logs.
    Enumeration nameDescription
    AliRtcLogLevelInfoStandard
    AliRtcLogLevelWarnWarning.
    AliRtcLogLevelErrorError.
    AliRtcLogLevelFatalCritical
    AliRtcLogLevelNoneNone.
  • AliRtcAudioNumChannel: The types of audio channels.
    EnumerationDescription
    AliRtcMonoAudioMono audio.
    AliRtcStereoAudioStereo audio.
  • AliRtcAudioSampleRate: The types of audio sample rates.
    Enumeration NameDescription
    AliRtcAudioSampleRate_8000A sample rate of 8,000.
    AliRtcAudioSampleRate_11025A sample rate of 11,025.
    AliRtcAudioSampleRate_16000A sample rate of 16,000.
    AliRtcAudioSampleRate_22050A sample rate of 22,050.
    AliRtcAudioSampleRate_32000A sample rate of 32,000.
    AliRtcAudioSampleRate_44100A sample rate of 44,100.
    AliRtcAudioSampleRate_48000A sample rate of 48,000.
  • AliRtcRecordType: The types of records.
    Enumeration NameDescription
    AliRtcRecordTypeAudioAudio-only recording.
  • AliRtcRecordFormat: The formats of records.
    EnumerationDescription
    AliRtcRecordFormatAACAAC file.
    AliRtcRecordFormatWAVWAV file.
  • AliRtcAudioQuality: The audio quality of recorded audio files.
    EnumerationDescription
    AliRtcAudioQualityLowLow.
    AliRtcAudioQualityMidiumMedium.
    AliRtcAudioQualityHighHigh.
  • AliRtcVideoQuality: The video quality of recorded video files.
    EnumerationDescription
    AliRtcVideoQualityDefaultThe default quality, which is the same as the video capture quality. Video recording is not available on mobile devices.
  • AliRtcAudioProfile: The modes for audio quality.
    EnumerationDescription
    AliRtcEngineLowQualityModeLow-quality audio mode.
    AliRtcEngineBasicQualityModeStandard-quality audio mode.
    AliRtcEngineHighQualityModeHigh-quality audio mode.
    AliRtcEngineStereoHighQualityModeStereo high-quality audio mode.
    AliRtcEngineSuperHighQualityModeUltra-high-quality audio mode.
    AliRtcEngineStereoSuperHighQualityModeStereo ultra-high-quality audio mode.
  • AliRtcAudioScenario: The modes for audio scenarios.
    Enumeration NameDescription
    AliRtcSceneDefaultModeThe default scenario. This mode is recommended for general audio and video communication scenarios.
    AliRtcSceneEducationModeThe education scenario. This mode prioritizes audio continuity and stability.
    AliRtcSceneMediaModeThe media scenario. This mode ensures high-fidelity voice and music quality. It is recommended for interactive live channels.
    AliRtcSceneMusicModeThe music scenario. This mode provides high-fidelity music quality. It is recommended for scenarios with high requirements for music quality, such as musical instrument tutoring.
    AliRtcSceneChatroomModeThe chat scenario. This mode is suitable for chat scenarios where users frequently enable and disable their microphones. The volume bar always indicates the voice call volume.
  • AliRtcMuteLocalAudioMode: The modes for muting local audio.
    Enumeration nameDescription
    AliRtcMuteAudioModeDefaultThe default mode. All audio, including microphone and external audio input, is muted.
    AliRtcMuteAllAudioModeMute all audio, including microphone and external audio input.
    AliRtcMuteOnlyMicAudioModeMute only the microphone.
    AliRtcMuteLocalAudioMaxA placeholder.
  • AliRtcRecordAudioConfig: Parameter settings for recording audio files.
    EnumerationDescription
    AliRtcAudioSampleRateThe sample rate of the recorded audio file.
    AliRtcAudioQualityThe quality of the recorded audio file.
  • AliRtcRecordVideoConfig: Parameter settings for recording video files.
    Enumeration nameDescription
    AliRtcVideoQualityThe quality of the recorded video file.
  • AliRtcBeautyConfig: Settings for basic retouching.
    ParameterTypeDescription
    whiteningLevelfloatThe whitening level. Valid values: [0, 1]. The larger the value, the stronger the whitening effect.
    smoothnessLevelfloatThe skin smoothing level. Valid values: [0, 1]. The larger the value, the stronger the smoothing effect.
  • AliRtcOnByeType: Enumerations for OnBye types.
    EnumerationDescription
    AliRtcByeTypeKickOffKicked out.
    AliRtcByeTypeDelChannelThe channel is deleted.
    AliRtcByeTypeRestoreSessionThe session needs to be restored after the user is passively removed.
  • AliRtcAudioEffectVoiceChangerMode: The modes for voice changer effects.
    Enumeration nameDescription
    AliRtcSdk_AudioEffect_Voice_Changer_OFFOff.
    AliRtcSdk_AudioEffect_Voice_Changer_OldmanOld man.
    AliRtcSdk_AudioEffect_Voice_Changer_BabyboyBaby boy.
    AliRtcSdk_AudioEffect_Voice_Changer_BabygirlBaby girl.
    AliRtcSdk_AudioEffect_Voice_Changer_RobotRobot.
    AliRtcSdk_AudioEffect_Voice_Changer_DaimoDevil.
    AliRtcSdk_AudioEffect_Voice_Changer_KtvKTV.
    AliRtcSdk_AudioEffect_Voice_Changer_EchoEcho.
    AliRtcSdk_AudioEffect_Voice_Changer_MAXA placeholder with no specific meaning.
  • AliRtcAudioEffectReverbMode: The modes for reverb effects.
    Enumeration nameDescription
    AliRtcAudioEffectReverb_OffOff.
    AliRtcAudioEffectReverb_Vocal_IVocal I.
    AliRtcAudioEffectReverb_Vocal_IIVocal II.
    AliRtcAudioEffectReverb_BathroomPublic bathhouse
    AliRtcAudioEffectReverb_Small_Room_BrightBright small room.
    AliRtcAudioEffectReverb_Small_Room_DarkDark small room.
    AliRtcAudioEffectReverb_Medium_RoomMedium room.
    AliRtcAudioEffectReverb_Large_RoomLarge room.
    AliRtcAudioEffectReverb_Church_HallChurch hall.
    AliRtcAudioEffectReverb_CathedralCathedral.
    AliRtcAudioEffectReverb_Mode_MaxA placeholder with no specific meaning.
  • AliRtcAudioEffectReverbParamType: Parameters for reverb effects.
    EnumerationDescription
    AliRtcAudioEffectReverb_Room_SizeThe room size. Valid values: [0, 100].
    AliRtcAudioEffectReverb_Pre_DelayThe pre-delay. Unit: milliseconds. Valid values: [0, 200].
    AliRtcAudioEffectReverb_RevetberanceThe reverberance. Valid values: [0, 100].
    AliRtcAudioEffectReverb_Hf_DampingThe damping. Valid values: [0, 100].
    AliRtcAudioEffectReverb_Tone_LowThe low tone. Valid values: [0, 100].
    AliRtcAudioEffectReverb_Tone_HighThe high tone. Valid values: [0, 100].
    AliRtcAudioEffectReverb_Dry_GainThe dry gain. Valid values: [-20, 10].
    AliRtcAudioEffectReverb_Wet_GainThe wet gain. Valid values: [-20, 10].
    AliRtcAudioEffectReverb_Type_MaxA placeholder with no specific meaning.
  • AliRtcAudioRouteType: Audio routing.
    Enumeration NameDescription
    AliRtcAudioRouteType_DefaultThe default audio route.
    AliRtcAudioRouteType_HeadsetHeadset.
    AliRtcAudioRouteType_EarpieceEarpiece.
    AliRtcAudioRouteType_HeadsetNoMicHeadset without a microphone.
    AliRtcAudioRouteType_SpeakerphonePhone speaker.
    AliRtcAudioRouteType_LoudSpeakerExternal speaker.
    AliRtcAudioRouteType_BlueToothBluetooth headset.
  • AliRtcRemoteTextureInfo: Texture information for a remote user.
    ParameterTypeDescription
    AliRtcVideoCanvasAliRtcVideoCanvasThe rendering canvas.
    userIdStringThe ID of the remote user.
    videoTrackintThe video stream type.
  • AliRtcVideoCanvas: The canvas for rendering.
    ParameterTypeDescription
    textureIdintThe texture ID of the video data.
    textureWidthintThe texture width.
    textureHeightintHigh texture quality
    sharedContextlongThe thread-related context variable of OpenGL.
    enableBeautybooleanIndicates whether to enable retouching. Valid values:
    • true: enabled.
    • false: disabled.
    The default value is false.
    viewViewThe video display window. This must be a SurfaceView rendering view created using the createRenderSurfaceView interface, or a TextureView rendering view created using the createRenderTextureView interface.
    renderModeAliRtcRenderModeThe view rendering mode. The default value is AliRtcRenderModeAuto.
    mirrorModeAliRtcRenderMirrorModeThe view image mode. The default value is AliRtcRenderMirrorModeOnlyFront.
    rotationModeAliRtcRotationModeThe view rotation angle. The default value is AliRtcRotationMode_0.
    backgroundColorintThe background color of the view.
  • AliRtcAudioRouteType: The states of a bypass stream ingest task.
    EnumerationDescription
    AliRtcMpuStateStartThe bypass task has started.
    AliRtcMpuStateUpdateThe bypass task is being updated.
    AliRtcMpuStateStopThe bypass task has stopped.
    AliRtcMpuStateEndThe bypass task has ended.
    AliRtcMpuStateConnectConnecting to the bypass task.
    AliRtcMpuStateRunningThe bypass task is running.
    AliRtcMpuStateRecoveringResumes a bypass task.
    AliRtcMpuStateFailedThe bypass task failed.
    AliRtcMpuStateUnknowThe bypass task is in an unknown state.
  • AliRtcRectPosition: The position and size of the watermark image.
    ParameterTypeDescription
    xfloatThe horizontal offset from the top-left corner.
    yfloatThe vertical offset from the top-left corner.
    widthfloatThe width of the watermark image.
    heightfloatThe height of the watermark image.
  • AliRtcWatermarkConfig: Settings for the watermark image.
    ParameterTypeDescription
    visibleInPreviewbooleanIndicates whether the watermark is visible in the local preview.
    positionInLandscapeModeAliRtcRectPositionThe coordinates of the watermark in landscape mode.
    positionInPortraitModeAliRtcRectPositionThe coordinates of the watermark in portrait mode.
    alphafloatThe transparency.
    normalizedbooleanNormalization.
  • AliRtcTextureInfo: Texture information.
    ParameterTypeDescription
    textureIdintThe texture ID.
    mirrorModeAliRtcRenderMirrorModeThe image mode.
  • AliEngineCameraCapturerConfiguration: Properties for camera capture preferences.
    ParameterTypeDescription
    preferenceAliRtcCaptureOutputPreferenceThe capture preference.
    cameraDirectionAliRtcCameraDirectionThe camera direction. This parameter is supported only on Android and iOS.
  • AliRtcCaptureOutputPreference: Preferences for camera capture.
    Enumeration NameDescription
    CAPTURER_OUTPUT_PREFERENCE_AUTOAutomatically adjust capture parameters.
    CAPTURER_OUTPUT_PREFERENCE_PERFORMANCEPrioritize device performance. The camera output parameters that are closest to the parameters set by setVideoProfile are selected.
    CAPTURER_OUTPUT_PREFERENCE_PREVIEWPrioritize video preview quality. Higher camera output parameters are selected.
  • AliRtcCameraDirection: The directions of the camera.
    EnumerationDescription
    CAMERA_REARUse the rear camera.
    CAMERA_FRONTUse the front camera.
  • AliRtcVideoEncoderFrameRate: The frame rates for video encoding.
    EnumerationDescription
    AliRtcVideoEncoderFrameRate_FPS_55 FPS.
    AliRtcVideoEncoderFrameRate_FPS_1010 FPS.
    AliRtcVideoEncoderFrameRate_FPS_1515 FPS.
    AliRtcVideoEncoderFrameRate_FPS_2020 FPS.
    AliRtcVideoEncoderFrameRate_FPS_3030 FPS.
  • AliRtcVideoEncoderBitrate: The bitrates for video encoding.
    EnumerationDescription
    AliRtcVideoEncoderStandardBitrateStandard bitrate mode.
  • AliRtcVideoEncoderMirrorMode: The image modes for encoded video.
    Enumeration nameDescription
    AliRtcVideoEncoderMirrorModeDisabledThe encoded video is mirrored.
    AliRtcVideoEncoderMirrorModeEnabledThe encoded video is not mirrored.
  • AliRtcVideoEncoderOrientationMode: The rotation modes for encoded video.
    EnumerationDescription
    AliRtcVideoEncoderOrientationModeAdaptiveAdaptive. The rotation angle is the same as that of the captured video.
    AliRtcVideoEncoderOrientationModeFixedLandscapeFixed landscape.
    AliRtcVideoEncoderOrientationModeFixedPortraitFixed portrait.
  • AliRtcVideoDimensions: The resolutions of a video.
    ParameterTypeDescription
    widthintThe video width.
    heightintThe video height.
  • AliRtcVideoEncoderConfiguration: Preferences for video encoding.
    ParameterTypeDescription
    dimensionsAliRtcVideoDimensionsThe video resolution.
    frameRateintThe video encoding frame rate.
    bitrateintThe video encoding bitrate.
    mirrorModeAliRtcVideoEncoderMirrorModeThe encoded video image mode.
    orientationModeAliRtcVideoEncoderOrientationModeThe encoded video rotation mode.
    rotationAliRtcRotationModeThe video rotation angle.
  • AliRtcScreenShareEncoderConfiguration: Preferences for screen encoding.
    ParameterTypeDescription
    dimensionsAliRtcVideoDimensionsThe video resolution.
    frameRateintThe video encoding frame rate.
    bitrateintThe video encoding bitrate.
    rotationModeAliRtcRotationModeThe stream ingest rotation angle.
  • AliRtcAuthInfo: Authentication information.
    ParameterTypeDescription
    channelIdStringThe channel ID.
    userIdStringThe user ID.
    appIdStringThe application ID.
    nonceStringA random string.
    roleStringThe role type. The default value is empty, which indicates that this feature is not used. Valid values:
    • pub: streamer.
    • sub: viewer.
    • relay: cross-channel stream forwarding.
    To perform role-based authentication, see How do I perform role-based authentication?.
    timestamplongThe timestamp.
    sessionStringThe session.
    tokenStringThe token.
    gslbString[]The GSLB address.
    agentString[]The address of the agent server.
  • AliRtcTranscodingUser: User information for live transcoding.
    ParameterTypeDescription
    userIdStringThe user ID.
  • AliRtcTranscodingUserPane: User pane information for live transcoding.
    ParameterTypeDescription
    paneIdintThe pane ID.
    userIdStringThe user ID.
    sourceTypeStringThe stream type. Valid values:
    • camera: camera.
    • shareScreen: screen sharing.
  • AliRtcTranscodingPane: Custom user pane information for live transcoding.
    Parameter NameTypeDescription
    paneIdintThe pane ID.
    userIdStringThe user ID.
    majorPaneIntegerSpecifies the main pane. Valid values:
    • 0: secondary pane.
    • 1: main pane.
    Each layout can have only one main pane.
    xfloatThe horizontal coordinate relative to the top-left corner, as a normalized percentage.
    yfloatThe vertical coordinate relative to the top-left corner, as a normalized percentage.
    widthfloatThe pane width.
    heightfloatThe pane height.
    zorderintThe stacking order. A value of 0 indicates the bottom layer. A value of 1 indicates the layer above layer 0, and so on.
    sourceTypeStringThe stream type. Valid values:
    • camera: The camera.
    • shareScreen: screen sharing.
    segmentTypeintThe portrait segmentation type. Valid values:
    • 0: Portrait segmentation is disabled.
    • 1: Portrait segmentation.
    Portrait segmentation is valid only in virtual background mode.
  • AliRtcTranscodingLayout: Custom layout information for live transcoding.
    Parameter NameTypeDescription
    audioMixCountintThe maximum number of mixed audio streams.
    panesList<AliRtcTranscodingPane>The custom layout pane parameters.
  • AliRtcLiveTranscoding: Configurations for live transcoding.
    ParameterTypeDescription
    mixModeintThe stream mixing mode. Valid values:
    • 0: single-stream forwarding. In this mode, the original single stream is forwarded without being mixed or transcoded. You do not need to configure stream mixing and transcoding parameters.
    • 1: Stream mixing and transcoding, supporting mixed and transcoded outputs.
    layoutIdsList<String>An array of layout IDs.
    subSpecUsersList<AliRtcTranscodingUser>A list of specified users for stream mixing.
    userPanesList<AliRtcTranscodingUserPane>A list of user panes.
    layoutsList<AliRtcTranscodingLayout>A list of custom user layouts.
    taskProfileStringThe task billing configuration.
    backgroundColorintThe background color in RGB format. The default value is 0, which indicates black. The value is calculated using the following formula: R + G × 256 + B × 65536. The valid values for R (red), G (green), and B (blue) are 0 to 255.
    mediaEncodeintThe encoding option.
    cropModeintThe video clipping mode. Valid values:
    • 1: crop while maintaining the aspect ratio.
    • 2: add black bars while maintaining the aspect ratio.
    The default value is 2.
    streamTypeintThe audio stream to forward in single-stream forwarding mode. Valid values:
    • 0: Forwards the original stream.
    • 1: Forward only the audio stream.
    • 2: Forward only the video stream.
    sourceTypeStringThe user video input stream in single-stream forwarding mode. Valid values:
    • camera: camera.
    • shareScreen: screen sharing.
    externalParamStringAn extended field.
  • AliRtcRemoteUserInfo: Information about a remote user.
    ParameterTypeDescription
    userIDStringThe ID of the remote user.
    sessionIDStringThe session ID of the remote user.
    displayNameStringThe name of the remote user.
    muteAudioPlayingbooleanIndicates whether the local client has muted this remote user.
    isOnlinebooleanIndicates whether the remote user is online.
    cameraCanvasAliRtcVideoCanvasThe camera stream canvas.
    screenCanvasAliRtcVideoCanvasThe screen stream canvas.
    hasAudiobooleanIndicates whether the remote user has published an audio stream.
    hasCameraMasterbooleanIndicates whether the remoteuser has published the high-definition camera stream.
    hasCameraSlavebooleanIndicates whether the remote user has published the low-definition camera stream.
    hasScreenSharingbooleanIndicates whether the remote user has published a screen stream.
    subScribedAudiobooleanIndicates whether the local client has pulled the audio stream of this remote user.
    subScribedCamearSlavebooleanIndicates whether the local client has pulled the low-definition camera stream of this remote user.
    subScribedCameraMasterbooleanIndicates whether the local client has pulled the high-definition camera stream of this remote user.
    subScribedScreenSharingbooleanIndicates whether the local client has pulled the screen stream of this remote user.
    requestAudiobooleanIndicates whether the local client has subscribed to the audio stream of this remote user.
    requestCameraSlavebooleanIndicates whether the local client has subscribed to the low-definition camera stream of this remote user.
    requestCameraMasterbooleanIndicates whether the local client has subscribed to the high-definition camera stream of this remote user.
    requestScreenSharingbooleanIndicates whether the local client has subscribed to the screen stream of this remote user.
    preferCameraMasterbooleanIndicates whether the remote user has prioritized the high-definition stream.
    hasCameraViewbooleanIndicates whether the local client has set the view for the camera stream of this remote user.
    hasScreenViewbooleanIndicates whether the local client has set the view for the screen stream of this remote user.
  • AliRtcVideoReason: The reason that triggers a change in the video stream state.
    EnumerationDescription
    AliRTCVideoChangedByClientClient.
    AliRTCVideoChangedByServerServer.
  • AliRtcVideoState: Changes in the state of the video stream.
    EnumerationDescription
    AliRtcVideoVideoCloseClose the video stream.
    AliRtcVideoVideoOpenResume the video stream.
  • AliRtcTranscodingPublishTaskStatus: The states of a live transcoding stream ingest task.
    Enumeration NameDescription
    AliRtcTrascodingPublishTaskStatusStartThe live transcoding stream ingest task has started.
    AliRtcTrascodingPublishTaskStatusUpdateThe live transcoding stream ingest task is being updated.
    AliRtcTrascodingPublishTaskStatusStopThe live transcoding stream ingest task has stopped.
  • AliEngineLiveTranscodingErrorCode: Error codes for live transcoding stream ingest.
    EnumerationDescription
    AliEngineLiveTranscodingErrorPublishOkPreparation for bypass live streaming is complete.
    AliEngineLiveTranscodingErrorStreamNotFoundThe bypass live stream ingest URL was not found.
  • AliRtcLiveTranscodingState: The states of live transcoding.
    Enumeration NameDescription
    AliRtcLiveTranscodingState_IDLEStream ingest is idle.
    AliRtcLiveTranscodingState_CONNNECTConnecting to the stream ingest server.
    AliRtcLiveTranscodingState_RUNNINGStream ingest is in progress.
    AliRtcLiveTranscodingState_RECOVERINGResuming stream ingest.
    AliRtcLiveTranscodingState_FAILUREStream ingest failed.
    AliRtcLiveTranscodingState_ENDStream ingest has ended.
  • AliRtcLiveTranscodingMediaProcessMode: The media processing modes for live transcoding.
    EnumerationDescription
    AliRtcLiveTranscodingNormalNormal mode.
    AliRtcLiveTranscodingVirtualBackgroundVirtual background mode.
  • AliRtcLiveTranscodingCropMode: The clipping modes for live transcoding.
    EnumerationDescription
    AliRtcLiveTranscodingCropCrop while maintaining the aspect ratio.
    AliRtcLiveTranscodingFillAdd black bars while maintaining the aspect ratio (default).
  • AliRtcLiveTranscodingFontType: The fonts for live transcoding.
    EnumerationDescription
    NOTO_SERIF_CJKSC_REGULARNotoSerifCJKsc-REGULAR.
    ALIBABA_PUHUITI_REGULARAlibaba-PuHuiTi-Regular.
    ALIBABA_PUHUITI_BOLDAlibaba-PuHuiTi-Bold.
    ALIBABA_PUHUITI_HeavyAlibaba-PuHuiTi-Heavy.
    ALIBABA_PUHUITI_LIGHTAlibaba-PuHuiTi-Light.
    ALIBABA_PUHUITI_MEDIUMAlibaba-PuHuiTi-Medium.
  • AliRtcLiveTranscodingSegmentType: The input types for live transcoding.
    Enumeration NameDescription
    AliRtcLiveTranscodingNoBodyNo portrait segmentation.
    AliRtcLiveTranscodingBodyPortrait segmentation.
  • AliRtcLiveTranscodingAudioSampleRate: The audio sample rates for live transcoding.
    Enumeration NameDescription
    AliRtcLiveTranscoding_HZ_48000Sample rate of 48,000 Hz.
    AliRtcLiveTranscoding_HZ_44100Sample rate of 44,100 Hz.
    AliRtcLiveTranscoding_HZ_32000Sample rate of 32,000 Hz.
    AliRtcLiveTranscoding_HZ_16000Sample rate of 16,000 Hz.
    AliRtcLiveTranscoding_HZ_8000Sample rate of 8,000 Hz.
  • AliRtcLiveTranscodingTaskProfile: The billing specifications for live transcoding.
    Enumeration nameDescription
    AliRtcLiveTranscoding_Profile_1IN_1080P1IN_1080P.
    AliRtcLiveTranscoding_Profile_1IN_720P1IN_720P.
    AliRtcLiveTranscoding_Profile_1IN_360P1IN_360P.
    AliRtcLiveTranscoding_Profile_2IN_1080P2IN_1080P.
    AliRtcLiveTranscoding_Profile_2IN_720P2IN_720P.
    AliRtcLiveTranscoding_Profile_2IN_360P2IN_360P.
    AliRtcLiveTranscoding_Profile_4IN_1080P4IN_1080P.
    AliRtcLiveTranscoding_Profile_4IN_720P4IN_720P.
    AliRtcLiveTranscoding_Profile_4IN_360P4IN_360P.
    AliRtcLiveTranscoding_Profile_9IN_1080P9IN_1080P.
    AliRtcLiveTranscoding_Profile_9IN_720P9IN_720P.
    AliRtcLiveTranscoding_Profile_9IN_360P9IN_360P.
    AliRtcLiveTranscoding_Profile_12IN_1080P12IN_1080P.
    AliRtcLiveTranscoding_Profile_12IN_720P12IN_720P.
    AliRtcLiveTranscoding_Profile_12IN_360P12IN_360P.
    AliRtcLiveTranscoding_Profile_16IN_1080P16IN_1080P.
    AliRtcLiveTranscoding_Profile_16IN_720P16IN_720P.
    AliRtcLiveTranscoding_Profile_16IN_360P16IN_360P.
    AliRtcLiveTranscoding_Profile_MixedAudio-only.
  • AliRtcLiveTranscodingSourceType: The video stream types for live transcoding.
    EnumerationDescription
    AliRtcLiveTranscodingCameraCamera.
    AliRtcLiveTranscodingShareScreenScreen sharing.
  • AliRtcLiveTranscodingStreamType: The stream types for live transcoding.
    Enumeration nameDescription
    AliRtcLiveTranscodingOriginForward the original stream.
    AliRtcLiveTranscodingAudioForward only the audio stream.
    AliRtcLiveTranscodingVideoForward only the video stream.
  • AliRtcLiveTranscodingMixMode: The modes for live transcoding.
    Enumeration nameDescription
    AliRtcLiveTranscodingSINGLESingle-stream forwarding. In this mode, the original single stream is forwarded without being mixed or transcoded. You do not need to configure stream mixing and transcoding parameters.
    AliRtcLiveTranscodingMIXStream mixing and transcoding (default). This mode supports mixed and transcoded output.
  • AliRtcVideoObserAlignment: The types of data alignment for raw data callbacks.
    Enumeration NameDescription
    AliRtcAlignmentDefaultNo processing. The raw data is directly called back.
    AliRtcAlignmentEvenThe width is processed to be an even number.
    AliRtcAlignment4The width is processed to be a multiple of 4.
    AliRtcAlignment8The width is processed to be a multiple of 8.
    AliRtcAlignment16The width is processed to be a multiple of 16.
  • AliRtcLiveTranscodingEncodeParam: Encoding parameters for live transcoding.
    ParameterTypeDescription
    videoWidthintWidth.
    videoHeightintHeight.
    videoFramerateintFrame rate.
    videoBitrateintBitrate.
    videoGopintGOP.
    audioSamplerateAliRtcLiveTranscodingAudioSampleRateBypasses the audio sampling rate of the live stream.
    audioBitrateintAudio bitrate.
    audioChannelsintThe number of audio channels.
  • AliRtcLiveTranscodingMixParam: Stream mixing parameters for live transcoding.
    ParameterTypeDescription
    taskProfileAliRtcLiveTranscodingTaskProfileBilling specifications for bypass live streaming.
    encodeParamAliRtcLiveTranscodingEncodeParamBypasses the encoding parameters for live streaming.
    usersList<TranscodingUser>A list of users in the bypass live stream.
    backgroundColorintBackground color.
    backgroundsList<TranscodingImage>A list of background images.
    watermarksList<TranscodingImage>A list of watermark images.
    clockWidgetsList<TranscodingClockWidget>A list of clock widgets.
    cropModeAliRtcLiveTranscodingCropModeBypass mode for live stream clipping.
    mediaProcessModeAliRtcLiveTranscodingMediaProcessModeBypass mode for live streams.
  • AliRtcLiveTranscodingParam: Parameters for live transcoding.
    ParameterTypeDescription
    mixModeAliRtcLiveTranscodingMixModeLive streaming bypass mode.
    singleParamAliRtcLiveTranscodingSingleParamParameters for a single stream in Bypass Live Streaming.
    mixParamAliRtcLiveTranscodingMixParamParameters for bypassing live stream mixing.
  • AliRtcLiveTranscodingSingleParam: Parameters for a single stream in live transcoding.
    ParameterTypeDescription
    userIdStringUser ID.
    streamTypeAliRtcLiveTranscodingStreamTypeBypass live stream relay
    sourceTypeAliRtcLiveTranscodingSourceTypeThe bypass live video stream type.
  • TranscodingClockWidget: The clock widget for live transcoding.
    ParameterTypeDescription
    mXintX-coordinate (in pixels).
    mYintY-coordinate (in pixels).
    mFontSizeintSpecifies the font size for bypass live streaming.
    mZorderintThe stacking order. A value of 0 indicates the bottom layer. A value of 1 indicates the layer above layer 0, and so on.
    mFontColorintFont color for bypass live streaming.
    mFontTypeAliRtcLiveTranscodingFontTypeBypass font for live streaming.
  • TranscodingUser: User information for live transcoding.
    ParameterTypeDescription
    mUserIdStringUser ID.
    xintX-coordinate (in pixels).
    yintY-coordinate (in pixels).
    widthintPane width.
    heightintPane height.
    zOrderintThe stacking order. A value of 0 indicates the bottom layer. A value of 1 indicates the layer above layer 0, and so on.
    sourceTypeAliRtcLiveTranscodingSourceTypeBypassed live video stream type.
    segmentTypeAliRtcLiveTranscodingSegmentTypeLive stream bypass input type.
    imagesList<TranscodingImage>A list of images.
    textsList<TranscodingText>A list of texts.
  • TranscodingText: Text information for live transcoding.
    ParameterTypeDescription
    mTextStringText information.
    mXintX-coordinate (in pixels).
    mYintY-coordinate (in pixels).
    mFontSizeintFont size.
    mZorderintThe stacking order. A value of 0 indicates the bottom layer. A value of 1 indicates the layer above layer 0, and so on.
    mFontColorintFont color.
    mFontTypeAliRtcLiveTranscodingFontTypeBypass the font for live streaming.
  • TranscodingImage: Image information for live transcoding.
    ParameterTypeDescription
    mUrlStringImage URL.
    mAlphafloatTransparency. A value of 0.0 indicates fully transparent, and 1.0 indicates fully opaque.
    mDisplayDisplayTypeImage display.
    mXintX-coordinate (in pixels).
    mYintY-coordinate (in pixels).
    mWidthintPane width.
    mHeightintPane height.
    mZorderintThe stacking order. A value of 0 indicates the bottom layer. A value of 1 indicates the layer above layer 0, and so on.
  • DisplayType: The display modes for an image.
    EnumerationDescription
    NOT_DISPLAYNot displayed.
    ALWAYSAlways displayed.
    WHEN_NO_VIDEODisplayed when there is no video.