nimeet 文档中心
English

Android API 参考

构建时从公开 SDK 接口定义生成:接口、方法重载、属性、事件、枚举与错误码。

由公开 SDK 接口定义生成

版本 v1.1.0 · 更新于 2026-10-26 · 修订 1

接口概览

本页列出 Android 端公开 API 的类、方法、重载、属性、事件与错误码,接口定义与 SDK 包版本一致。

核对项数量
接口 / 类143
方法654
方法重载709
属性631
枚举52
错误码常量6

可用性

该端 SDK:正式可用。接口定义与 SDK 包版本一致;运行时的能力边界以实际发布的 SDK 包为准。

加入频道核心链路

按 join / leave / publish / subscribe 的典型调用顺序整理;参数表在“最小可运行链路”一节展开。

步骤接口方法重载数
创建 / 初始化IAgoraMusicContentCenterinitialize1
续期 TokenIAgoraMusicContentCenterrenewToken1
订阅远端媒体IBaseSpatialAudioEnginemuteRemoteAudioStream1
开启视频与预览RtcEngineenableVideo1
加入频道RtcEnginejoinChannel2
离开频道RtcEngineleaveChannel2
频道场景RtcEnginesetChannelProfile1
角色切换RtcEnginesetClientRole2
本地画面RtcEnginesetupLocalVideo1

最小可运行链路的参数

参数类型可选可变参数
configurationMusicContentCenterConfiguration否否
tokenString否否
uidint否否
muteboolean否否
tokenString否否
channelIdString否否
optionalInfoString否否
uidint否否
tokenString否否
channelIdString否否
uidint否否
optionsChannelMediaOptions否否
optionsLeaveChannelOptions否否
profileint否否
roleint否否
roleint否否
optionsClientRoleOptions否否
localVideoCanvas否否

接口索引

接口方法属性事件
AdvancedAudioOptions010
AdvancedConfigInfo010
AdvanceOptions030
AgoraFacePositionInfo050
AgoraFocalLengthInfo020
AgoraImage070
AgoraMediaRecorder300
AgoraMetadata040
AgoraRhythmPlayerConfig020
AgoraVideoFrame0160
AreaCode090
AsyncCallback100
AudioCaptureParameters040
AudioEncodedFrameObserverConfig020
AudioFrame060
AudioParams040
AudioRecordingConfiguration060
AudioSpectrumInfo020
AudioTrackConfig020
AudioVolumeInfo040
BeautyOptions080
CacheStatistics030
CameraCapturerConfiguration050
Canvas500
CanvasConfig400
CaptureFormat030
ChannelMediaInfo030
ChannelMediaOptions0350
ChannelMediaRelayConfiguration320
ClientRoleOptions010
ClimaxSegment020
CodecCapInfo030
CodecCapLevels020
ColorEnhanceOptions020
Config400
ContentInspectConfig090
ContentInspectModule030
DataStreamConfig020
DeviceInfo010
EchoTestConfiguration060
EncodedVideoFrameInfo0100
EncryptionConfig040
Error200
ExtensionContext040
FaceShapeAreaOptions0130
FaceShapeBeautyOptions050
FilterEffectOptions020
IAgoraMusicContentCenter1700
IAgoraMusicPlayer500
IAudioEncodedFrameObserver300
IAudioFrameObserver1000
IAudioSpectrumObserver200
IBaseSpatialAudioEngine1100
ILocalSpatialAudioEngine600
ImageTrackOptions030
IMediaPlayer4100
IMediaPlayerAudioFrameObserver100
IMediaPlayerCacheManager1200
IMediaPlayerCustomDataProvider200
IMediaPlayerObserver1100
IMediaPlayerVideoFrameObserver100
IMediaRecorderCallback200
IMetadataObserver300
IMusicContentCenterEventHandler500
IRtcEngineEventHandler8400
IRtcEngineReleaseCallback100
IVideoEffectObject1000
IVideoEncodedFrameObserver100
IVideoFrameObserver800
LastmileProbeConfig040
LastmileProbeOneWayResult030
LastmileProbeResult040
LeaveChannelOptions030
LiveTranscoding21150
LocalAccessPointConfiguration060
LocalAudioMixerConfiguration020
LocalAudioStats090
LocalSpatialAudioConfig010
LocalTranscoderConfiguration030
LocalVideoStats0230
LogConfig030
LogUploadServerInfo040
LowLightEnhanceOptions060
MediaPlayerSource090
MediaRecorderConfiguration0110
MediaStreamInfo0130
MixedAudioStream040
MultipathStats080
Music0110
MusicCacheInfo020
MusicCacheStatusType020
MusicChartInfo020
MusicContentCenterConfiguration050
MusicContentCenterStateReason080
PathStats030
Player1800
PlayerConfig1200
PlayerGetStatsCallback100
PlayerInfo1400
PlayerObserver700
PlayerPlaybackStats040
PlayerStats000
PlayerUpdatedInfo060
PreloadState040
RecorderInfo030
RecorderStreamInfo030
Rectangle040
RemoteAudioStats0190
RemoteVideoStats0180
RemoteVoicePositionInfo020
RtcConnection020
RtcEngine25600
RtcEngineConfig0140
RtcEngineEx4800
RtcStats0240
Rte600
RteException110
ScreenCaptureParameters040
SegmentationProperty080
SimulcastStreamConfig030
SnapshotConfig020
SpatialAudioParams080
SpatialAudioZone090
SrcInfo020
TranscodingUser080
TranscodingVideoStream0110
UplinkNetworkInfo010
UserAudioSpectrumInfo020
UserInfo020
VideoCanvas0190
VideoCaptureParameters050
VideoDenoiserOptions060
VideoDimensions020
VideoEncoderConfiguration0100
VideoFrame060
VideoLayout080
VideoLayoutInfo040
VideoRenderingTracingInfo070
VideoSubscriptionOptions020
VirtualBackgroundSource040
WatermarkBuffer580
WatermarkConfig370
WatermarkOptions440

全部接口

AdvancedAudioOptions 0 方法 / 1 属性
属性类型只读
audioProcessingChannelsAudioProcessingChannelsEnum否
AdvancedConfigInfo 0 方法 / 1 属性
属性类型只读
logUploadServerLogUploadServerInfo否
AdvanceOptions 0 方法 / 3 属性
属性类型只读
encodingPreferenceENCODING_PREFERENCE否
compressionPreferenceCOMPRESSION_PREFERENCE否
encodeAlphaboolean否
AgoraFacePositionInfo 0 方法 / 5 属性
属性类型只读
xint否
yint否
widthint否
heightint否
distanceint否
AgoraFocalLengthInfo 0 方法 / 2 属性
属性类型只读
cameraDirectionint否
focalLengthTypeint否
AgoraImage 0 方法 / 7 属性
属性类型只读
urlString否
xint否
yint否
widthint否
heightint否
zOrderint否
alphadouble否
AgoraMediaRecorder 3 方法 / 0 属性
typescript
setMediaRecorderObserver(callback: IMediaRecorderCallback): int
startRecording(config: MediaRecorderConfiguration): int
stopRecording(): int

方法明细:3 / 3(参数、返回值、错误码)

方法参数返回值错误
setMediaRecorderObservercallback: IMediaRecorderCallbackint错误码索引
startRecordingconfig: MediaRecorderConfigurationint错误码索引
stopRecording—int错误码索引
AgoraMetadata 0 方法 / 4 属性
属性类型只读
channelIdString否
uidint否
databyte[]否
timeStampMslong否
AgoraRhythmPlayerConfig 0 方法 / 2 属性
属性类型只读
beatsPerMeasureint否
beatsPerMinuteint否
AgoraVideoFrame 0 方法 / 16 属性
属性类型只读
formatint否
timeStamplong否
strideint否
heightint否
textureIDint否
syncModeboolean否
transformfloat[]否
eglContext10javax.microedition.khronos.egl.EGLContext否
eglContext14android.opengl.EGLContext否
bufbyte[]否
cropLeftint否
cropTopint否
cropRightint否
cropBottomint否
rotationint否
alphaStitchModeAlphaStitchMode否
AreaCode 0 方法 / 9 属性
属性类型只读
AREA_CODE_NONEint否
AREA_CODE_CNint否
AREA_CODE_NAint否
AREA_CODE_EUint否
AREA_CODE_ASint否
AREA_CODE_JPint否
AREA_CODE_INint否
AREA_CODE_RUint否
AREA_CODE_GLOBint否
AsyncCallback 1 方法 / 0 属性
typescript
onResult(error: Error): void

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
onResulterror: Errorvoid错误码索引
AudioCaptureParameters 0 方法 / 4 属性
属性类型只读
sampleRateint否
channelsint否
captureSignalVolumeint否
allowCaptureCurrentAppboolean否
AudioEncodedFrameObserverConfig 0 方法 / 2 属性
属性类型只读
postionTypeint否
encodingTypeint否
AudioFrame 0 方法 / 6 属性
属性类型只读
bufferByteBuffer否
sampleRataHzint否
bytesPerSampleint否
channelNumsint否
samplesPerChannelint否
timestamplong否
AudioParams 0 方法 / 4 属性
属性类型只读
sampleRateint否
channelint否
modeint否
samplesPerCallint否
AudioRecordingConfiguration 0 方法 / 6 属性
属性类型只读
filePathString否
sampleRateint否
codecboolean否
fileRecordOptionint否
qualityint否
recordingChannelint否
AudioSpectrumInfo 0 方法 / 2 属性
属性类型只读
audioSpectrumDatafloat[]否
dataLengthint否
AudioTrackConfig 0 方法 / 2 属性
属性类型只读
enableLocalPlaybackboolean否
enableAudioProcessingboolean否
AudioVolumeInfo 0 方法 / 4 属性
属性类型只读
uidint否
volumeint否
vadint否
voicePitchdouble否
BeautyOptions 0 方法 / 8 属性
属性类型只读
LIGHTENING_CONTRAST_LOWint否
LIGHTENING_CONTRAST_NORMALint否
LIGHTENING_CONTRAST_HIGHint否
lighteningContrastLevelint否
lighteningLevelfloat否
smoothnessLevelfloat否
rednessLevelfloat否
sharpnessLevelfloat否
CacheStatistics 0 方法 / 3 属性
属性类型只读
fileSizelong否
cacheSizelong否
downloadSizelong否
CameraCapturerConfiguration 0 方法 / 5 属性
属性类型只读
cameraDirectionCAMERA_DIRECTION否
cameraIdString否
cameraFocalLengthTypeCAMERA_FOCAL_LENGTH_TYPE否
captureFormatCaptureFormat否
followEncodeDimensionRatioBoolean否
Canvas 5 方法 / 0 属性
typescript
Canvas(rte: Rte, config: CanvasInitialConfig): unknown
addView(view: View, viewConfig: ViewConfig): void
getConfigs(config: CanvasConfig): void
removeView(view: View, viewConfig: ViewConfig): void
setConfigs(config: CanvasConfig): void

方法明细:5 / 5(参数、返回值、错误码)

方法参数返回值错误
Canvasrte: Rte, config: CanvasInitialConfigunknown错误码索引
addViewview: View, viewConfig: ViewConfigvoid错误码索引
getConfigsconfig: CanvasConfigvoid错误码索引
removeViewview: View, viewConfig: ViewConfigvoid错误码索引
setConfigsconfig: CanvasConfigvoid错误码索引
CanvasConfig 4 方法 / 0 属性
typescript
getVideoMirrorMode(): Constants.VideoMirrorMode
getVideoRenderMode(): Constants.VideoRenderMode
setVideoMirrorMode(mode: Constants.VideoMirrorMode): void
setVideoRenderMode(mode: Constants.VideoRenderMode): void

方法明细:4 / 4(参数、返回值、错误码)

方法参数返回值错误
getVideoMirrorMode—Constants.VideoMirrorMode错误码索引
getVideoRenderMode—Constants.VideoRenderMode错误码索引
setVideoMirrorModemode: Constants.VideoMirrorModevoid错误码索引
setVideoRenderModemode: Constants.VideoRenderModevoid错误码索引
CaptureFormat 0 方法 / 3 属性
属性类型只读
widthint否
heightint否
fpsint否
ChannelMediaInfo 0 方法 / 3 属性
属性类型只读
channelNameString否
tokenString否
uidint否
ChannelMediaOptions 0 方法 / 35 属性
属性类型只读
publishCameraTrackBoolean否
publishSecondaryCameraTrackBoolean否
publishThirdCameraTrackBoolean否
publishFourthCameraTrackBoolean否
publishMicrophoneTrackBoolean否
publishScreenCaptureVideoBoolean否
publishScreenCaptureAudioBoolean否
publishCustomAudioTrackBoolean否
publishCustomAudioTrackIdInteger否
publishCustomVideoTrackBoolean否
publishEncodedVideoTrackBoolean否
publishMediaPlayerAudioTrackBoolean否
publishMediaPlayerVideoTrackBoolean否
publishTranscodedVideoTrackBoolean否
publishMixedAudioTrackBoolean否
publishLipSyncTrackBoolean否
autoSubscribeAudioBoolean否
autoSubscribeVideoBoolean否
enableAudioRecordingOrPlayoutBoolean否
publishMediaPlayerIdInteger否
clientRoleTypeInteger否
audienceLatencyLevelInteger否
defaultVideoStreamTypeInteger否
channelProfileInteger否
audioDelayMsInteger否
mediaPlayerAudioDelayMsInteger否
tokenString否
enableBuiltInMediaEncryptionBoolean否
publishRhythmPlayerTrackBoolean否
isInteractiveAudienceBoolean否
customVideoTrackIdInteger否
isAudioFilterableBoolean否
startPreviewBoolean否
enableMultipathBoolean否
preferMultipathTypeInteger否
ChannelMediaRelayConfiguration 3 方法 / 2 属性
typescript
removeDestChannelInfo(channelName: String): void
setDestChannelInfo(channelName: String, destInfo: ChannelMediaInfo): void
setSrcChannelInfo(srcInfo: ChannelMediaInfo): void

方法明细:3 / 3(参数、返回值、错误码)

方法参数返回值错误
removeDestChannelInfochannelName: Stringvoid错误码索引
setDestChannelInfochannelName: String, destInfo: ChannelMediaInfovoid错误码索引
setSrcChannelInfosrcInfo: ChannelMediaInfovoid错误码索引
属性类型只读
srcInfoChannelMediaInfo否
destInfosMap否
ClientRoleOptions 0 方法 / 1 属性
属性类型只读
audienceLatencyLevelint否
ClimaxSegment 0 方法 / 2 属性
属性类型只读
startTimeMsint否
endTimeMsint否
CodecCapInfo 0 方法 / 3 属性
属性类型只读
codecTypeint否
codecCapMaskint否
codecLevelsCodecCapLevels否
CodecCapLevels 0 方法 / 2 属性
属性类型只读
hwDecodingLevelint否
swDecodingLevelint否
ColorEnhanceOptions 0 方法 / 2 属性
属性类型只读
strengthLevelfloat否
skinProtectLevelfloat否
Config 4 方法 / 0 属性
typescript
getAppId(): String
getJsonParameter(): String
setAppId(appId: String): void
setJsonParameter(jsonParameter: String): void

方法明细:4 / 4(参数、返回值、错误码)

方法参数返回值错误
getAppId—String错误码索引
getJsonParameter—String错误码索引
setAppIdappId: Stringvoid错误码索引
setJsonParameterjsonParameter: Stringvoid错误码索引
ContentInspectConfig 0 方法 / 9 属性
属性类型只读
CONTENT_INSPECT_TYPE_INVALIDint否
CONTENT_INSPECT_TYPE_MODERATIONunknown否
CONTENT_INSPECT_TYPE_SUPERVISEint否
CONTENT_INSPECT_TYPE_IMAGE_MODERATIONint否
MAX_CONTENT_INSPECT_MODULE_COUNTint否
extraInfoString否
serverConfigString否
modulesContentInspectModule[]否
moduleCountint否
ContentInspectModule 0 方法 / 3 属性
属性类型只读
typeint否
intervalint否
positionConstants.VideoModulePosition否
DataStreamConfig 0 方法 / 2 属性
属性类型只读
syncWithAudioboolean否
orderedboolean否
DeviceInfo 0 方法 / 1 属性
属性类型只读
isLowLatencyAudioSupportedboolean否
EchoTestConfiguration 0 方法 / 6 属性
属性类型只读
viewSurfaceView否
enableAudioboolean否
enableVideoboolean否
tokenString否
channelIdString否
intervalInSecondsint否
EncodedVideoFrameInfo 0 方法 / 10 属性
属性类型只读
codecTypeint否
widthint否
heightint否
framesPerSecondint否
frameTypeint否
rotationint否
trackIdint否
captureTimeMslong否
decodeTimeMslong否
streamTypeint否
EncryptionConfig 0 方法 / 4 属性
属性类型只读
encryptionModeEncryptionMode否
encryptionKeyString否
encryptionKdfSaltbyte[]否
datastreamEncryptionEnabledboolean否
Error 2 方法 / 0 属性
typescript
code(): Constants.ErrorCode
message(): String

方法明细:2 / 2(参数、返回值、错误码)

方法参数返回值错误
code—Constants.ErrorCode错误码索引
message—String错误码索引
ExtensionContext 0 方法 / 4 属性
属性类型只读
isValidboolean否
uidint否
providerNameString否
extensionNameString否
FaceShapeAreaOptions 0 方法 / 13 属性
属性类型只读
shapeAreaint否
shapeIntensityint否
FACE_SHAPE_AREA_HEADSCALEint否
FACE_SHAPE_AREA_FACELENGTHint否
FACE_SHAPE_AREA_FACESMALLint否
FACE_SHAPE_AREA_EYESCALEint否
FACE_SHAPE_AREA_NOSEWINGint否
FACE_SHAPE_AREA_NOSEBRIDGEint否
FACE_SHAPE_AREA_NOSETIPint否
FACE_SHAPE_AREA_NOSEGENERALint否
FACE_SHAPE_AREA_MOUTHSCALEint否
FACE_SHAPE_AREA_MOUTHSMILEint否
FACE_SHAPE_AREA_EYEANGLEint否
FaceShapeBeautyOptions 0 方法 / 5 属性
属性类型只读
FACE_SHAPE_BEAUTY_STYLE_FEMALEint否
FACE_SHAPE_BEAUTY_STYLE_MALEint否
FACE_SHAPE_BEAUTY_STYLE_NATURALint否
shapeStyleint否
styleIntensityint否
FilterEffectOptions 0 方法 / 2 属性
属性类型只读
pathString否
strengthfloat否
IAgoraMusicContentCenter 17 方法 / 0 属性
typescript
createMusicPlayer(): IAgoraMusicPlayer
destroy(): void
destroyMusicPlayer(player: IAgoraMusicPlayer): int
getCaches(): MusicCacheInfo[]
getInternalSongCode(songCode: long, jsonOption: String): long
getLyric(songCode: long, lyricType: int): String
getMusicCharts(): String
getMusicCollectionByMusicChartId(musicChartId: int, page: int, pageSize: int): String
getMusicCollectionByMusicChartId(musicChartId: int, page: int, pageSize: int, jsonOption: String): String
getSongSimpleInfo(songCode: long): String
initialize(configuration: MusicContentCenterConfiguration): int
isPreloaded(songCode: long): int
preload(songCode: long, jsonOption: String): int
preload(songCode: long): String
registerEventHandler(eventHandler: IMusicContentCenterEventHandler): int
removeCache(songCode: long): int
renewToken(token: String): int
searchMusic(keyword: String, page: int, pageSize: int): String
searchMusic(keyword: String, page: int, pageSize: int, jsonOption: String): String
unregisterEventHandler(): int

方法明细:17 / 17(参数、返回值、错误码)

方法参数返回值错误
createMusicPlayer—IAgoraMusicPlayer错误码索引
destroy—void错误码索引
destroyMusicPlayerplayer: IAgoraMusicPlayerint错误码索引
getCaches—MusicCacheInfo[]错误码索引
getInternalSongCodesongCode: long, jsonOption: Stringlong错误码索引
getLyricsongCode: long, lyricType: intString错误码索引
getMusicCharts—String错误码索引
getMusicCollectionByMusicChartIdmusicChartId: int, page: int, pageSize: intString错误码索引
getSongSimpleInfosongCode: longString错误码索引
initializeconfiguration: MusicContentCenterConfigurationint错误码索引
isPreloadedsongCode: longint错误码索引
preloadsongCode: long, jsonOption: Stringint错误码索引
registerEventHandlereventHandler: IMusicContentCenterEventHandlerint错误码索引
removeCachesongCode: longint错误码索引
renewTokentoken: Stringint错误码索引
searchMusickeyword: String, page: int, pageSize: intString错误码索引
unregisterEventHandler—int错误码索引
IAgoraMusicPlayer 5 方法 / 0 属性
typescript
destroy(): int
getPlaySrc(): String
open(songCode: long, startPos: long): int
open(url: String, startPos: long): int
setPlayMode(mode: MusicPlayMode): int
stop(): int

方法明细:5 / 5(参数、返回值、错误码)

方法参数返回值错误
destroy—int错误码索引
getPlaySrc—String错误码索引
opensongCode: long, startPos: longint错误码索引
setPlayModemode: MusicPlayModeint错误码索引
stop—int错误码索引
IAudioEncodedFrameObserver 3 方法 / 0 属性
typescript
onMixedAudioEncodedFrame(buffer: ByteBuffer, samplesPerChannel: int, channels: int, samplesPerSec: int, codecType: int): void
onPlaybackAudioEncodedFrame(buffer: ByteBuffer, samplesPerChannel: int, channels: int, samplesPerSec: int, codecType: int): void
onRecordAudioEncodedFrame(buffer: ByteBuffer, samplesPerChannel: int, channels: int, samplesPerSec: int, codecType: int): void

方法明细:3 / 3(参数、返回值、错误码)

方法参数返回值错误
onMixedAudioEncodedFramebuffer: ByteBuffer, samplesPerChannel: int, channels: int, samplesPerSec: int, codecType: intvoid错误码索引
onPlaybackAudioEncodedFramebuffer: ByteBuffer, samplesPerChannel: int, channels: int, samplesPerSec: int, codecType: intvoid错误码索引
onRecordAudioEncodedFramebuffer: ByteBuffer, samplesPerChannel: int, channels: int, samplesPerSec: int, codecType: intvoid错误码索引
IAudioFrameObserver 10 方法 / 0 属性
typescript
getEarMonitoringAudioParams(): AudioParams
getMixedAudioParams(): AudioParams
getObservedAudioFramePosition(): int
getPlaybackAudioParams(): AudioParams
getRecordAudioParams(): AudioParams
onEarMonitoringAudioFrame(type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: int): boolean
onMixedAudioFrame(channelId: String, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: int): boolean
onPlaybackAudioFrame(channelId: String, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: int): boolean
onPlaybackAudioFrameBeforeMixing(channelId: String, uid: int, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: int, rtpTimestamp: int, presentationMs: long): boolean
onRecordAudioFrame(channelId: String, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: int): boolean

方法明细:10 / 10(参数、返回值、错误码)

方法参数返回值错误
getEarMonitoringAudioParams—AudioParams错误码索引
getMixedAudioParams—AudioParams错误码索引
getObservedAudioFramePosition—int错误码索引
getPlaybackAudioParams—AudioParams错误码索引
getRecordAudioParams—AudioParams错误码索引
onEarMonitoringAudioFrametype: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: intboolean错误码索引
onMixedAudioFramechannelId: String, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: intboolean错误码索引
onPlaybackAudioFramechannelId: String, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: intboolean错误码索引
onPlaybackAudioFrameBeforeMixingchannelId: String, uid: int, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: int, rtpTimestamp: int, presentationMs: longboolean错误码索引
onRecordAudioFramechannelId: String, type: int, samplesPerChannel: int, bytesPerSample: int, channels: int, samplesPerSec: int, buffer: ByteBuffer, renderTimeMs: long, avsync_type: intboolean错误码索引
IAudioSpectrumObserver 2 方法 / 0 属性
typescript
onLocalAudioSpectrum(data: AudioSpectrumInfo): boolean
onRemoteAudioSpectrum(userAudioSpectrumInfos: UserAudioSpectrumInfo[], spectrumNumber: int): boolean

方法明细:2 / 2(参数、返回值、错误码)

方法参数返回值错误
onLocalAudioSpectrumdata: AudioSpectrumInfoboolean错误码索引
onRemoteAudioSpectrumuserAudioSpectrumInfos: UserAudioSpectrumInfo[], spectrumNumber: intboolean错误码索引
IBaseSpatialAudioEngine 11 方法 / 0 属性
typescript
clearRemotePositions(): int
muteAllRemoteAudioStreams(mute: boolean): int
muteLocalAudioStream(mute: boolean): int
muteRemoteAudioStream(uid: int, mute: boolean): int
setAudioRecvRange(range: float): int
setDistanceUnit(unit: float): int
setMaxAudioRecvCount(maxCount: int): int
setPlayerAttenuation(playerId: int, attenuation: double, forceSet: boolean): int
setZones(zones: SpatialAudioZone[]): int
updatePlayerPositionInfo(playerId: int, positionInfo: RemoteVoicePositionInfo): int
updateSelfPosition(position: float[], axisForward: float[], axisRight: float[], axisUp: float[]): int

方法明细:11 / 11(参数、返回值、错误码)

方法参数返回值错误
clearRemotePositions—int错误码索引
muteAllRemoteAudioStreamsmute: booleanint错误码索引
muteLocalAudioStreammute: booleanint错误码索引
muteRemoteAudioStreamuid: int, mute: booleanint错误码索引
setAudioRecvRangerange: floatint错误码索引
setDistanceUnitunit: floatint错误码索引
setMaxAudioRecvCountmaxCount: intint错误码索引
setPlayerAttenuationplayerId: int, attenuation: double, forceSet: booleanint错误码索引
setZoneszones: SpatialAudioZone[]int错误码索引
updatePlayerPositionInfoplayerId: int, positionInfo: RemoteVoicePositionInfoint错误码索引
updateSelfPositionposition: float[], axisForward: float[], axisRight: float[], axisUp: float[]int错误码索引
ILocalSpatialAudioEngine 6 方法 / 0 属性
typescript
create(): ILocalSpatialAudioEngine
destroy(): void
initialize(config: LocalSpatialAudioConfig): int
removeRemotePosition(uid: int): int
setRemoteAudioAttenuation(uid: int, attenuation: double, forceSet: boolean): int
updateRemotePosition(uid: int, posInfo: RemoteVoicePositionInfo): int

方法明细:6 / 6(参数、返回值、错误码)

方法参数返回值错误
create—ILocalSpatialAudioEngine错误码索引
destroy—void错误码索引
initializeconfig: LocalSpatialAudioConfigint错误码索引
removeRemotePositionuid: intint错误码索引
setRemoteAudioAttenuationuid: int, attenuation: double, forceSet: booleanint错误码索引
updateRemotePositionuid: int, posInfo: RemoteVoicePositionInfoint错误码索引
ImageTrackOptions 0 方法 / 3 属性
属性类型只读
imageUrlString否
fpsint否
mirrorModeVideoEncoderConfiguration.MIRROR_MODE_TYPE否
IMediaPlayer 41 方法 / 0 属性
typescript
adjustPlayoutVolume(volume: int): int
adjustPublishSignalVolume(volume: int): int
destroy(): int
getAudioBufferDelay(): int
getDuration(): long
getMediaPlayerId(): int
getMute(): boolean
getPlayPosition(): long
getPlaySrc(): String
getPlayoutVolume(): int
getPublishSignalVolume(): int
getState(): Constants.MediaPlayerState
getStreamCount(): int
getStreamInfo(index: int): MediaStreamInfo
mute(muted: boolean): int
open(url: String, startPos: long): int
open(uri: Uri, startPos: long): int
openWithMediaSource(source: MediaPlayerSource): int
pause(): int
play(): int
playPreloadedSrc(src: String): int
preloadSrc(src: String, startPos: long): int
registerAudioFrameObserver(audioFrameObserver: IMediaPlayerAudioFrameObserver, mode: int): int
registerPlayerObserver(playerObserver: IMediaPlayerObserver): int
registerVideoFrameObserver(videoFrameObserver: IMediaPlayerVideoFrameObserver): int
resume(): int
seek(newPos: long): int
selectAudioTrack(index: int): int
selectMultiAudioTrack(playoutTrackIndex: int, publishTrackIndex: int): int
setAudioDualMonoMode(mode: int): int
setAudioPitch(pitch: int): int
setLoopCount(loopCount: int): int
setPlaybackSpeed(speed: int): int
setPlayerOption(key: String, value: int): int
setPlayerOptionString(key: String, value: String): int
setSpatialAudioParams(params: SpatialAudioParams): int
setVideoRenderMode(mode: unknown): unknown
setView(videoView: View): int
stop(): int
switchSrc(src: String, syncPts: boolean): int
unRegisterPlayerObserver(playerObserver: IMediaPlayerObserver): int
unloadSrc(src: String): int

方法明细:41 / 41(参数、返回值、错误码)

方法参数返回值错误
adjustPlayoutVolumevolume: intint错误码索引
adjustPublishSignalVolumevolume: intint错误码索引
destroy—int错误码索引
getAudioBufferDelay—int错误码索引
getDuration—long错误码索引
getMediaPlayerId—int错误码索引
getMute—boolean错误码索引
getPlayPosition—long错误码索引
getPlaySrc—String错误码索引
getPlayoutVolume—int错误码索引
getPublishSignalVolume—int错误码索引
getState—Constants.MediaPlayerState错误码索引
getStreamCount—int错误码索引
getStreamInfoindex: intMediaStreamInfo错误码索引
mutemuted: booleanint错误码索引
openurl: String, startPos: longint错误码索引
openWithMediaSourcesource: MediaPlayerSourceint错误码索引
pause—int错误码索引
play—int错误码索引
playPreloadedSrcsrc: Stringint错误码索引
preloadSrcsrc: String, startPos: longint错误码索引
registerAudioFrameObserveraudioFrameObserver: IMediaPlayerAudioFrameObserver, mode: intint错误码索引
registerPlayerObserverplayerObserver: IMediaPlayerObserverint错误码索引
registerVideoFrameObservervideoFrameObserver: IMediaPlayerVideoFrameObserverint错误码索引
resume—int错误码索引
seeknewPos: longint错误码索引
selectAudioTrackindex: intint错误码索引
selectMultiAudioTrackplayoutTrackIndex: int, publishTrackIndex: intint错误码索引
setAudioDualMonoModemode: intint错误码索引
setAudioPitchpitch: intint错误码索引
setLoopCountloopCount: intint错误码索引
setPlaybackSpeedspeed: intint错误码索引
setPlayerOptionkey: String, value: intint错误码索引
setPlayerOptionStringkey: String, value: Stringint错误码索引
setSpatialAudioParamsparams: SpatialAudioParamsint错误码索引
setVideoRenderModemode: unknownunknown错误码索引
setViewvideoView: Viewint错误码索引
stop—int错误码索引
switchSrcsrc: String, syncPts: booleanint错误码索引
unRegisterPlayerObserverplayerObserver: IMediaPlayerObserverint错误码索引
unloadSrcsrc: Stringint错误码索引
IMediaPlayerAudioFrameObserver 1 方法 / 0 属性
typescript
onFrame(frame: AudioFrame): AudioFrame

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
onFrameframe: AudioFrameAudioFrame错误码索引
IMediaPlayerCacheManager 12 方法 / 0 属性
typescript
enableAutoRemoveCache(enable: boolean): int
getCacheDir(): String
getCacheFileCount(): int
getMaxCacheFileCount(): int
getMaxCacheFileSize(): long
getMediaPlayerCacheManager(): IMediaPlayerCacheManager
removeAllCaches(): int
removeCacheByUri(uri: String): int
removeOldCache(): int
setCacheDir(path: String): int
setMaxCacheFileCount(count: int): int
setMaxCacheFileSize(cacheSize: long): int

方法明细:12 / 12(参数、返回值、错误码)

方法参数返回值错误
enableAutoRemoveCacheenable: booleanint错误码索引
getCacheDir—String错误码索引
getCacheFileCount—int错误码索引
getMaxCacheFileCount—int错误码索引
getMaxCacheFileSize—long错误码索引
getMediaPlayerCacheManager—IMediaPlayerCacheManager错误码索引
removeAllCaches—int错误码索引
removeCacheByUriuri: Stringint错误码索引
removeOldCache—int错误码索引
setCacheDirpath: Stringint错误码索引
setMaxCacheFileCountcount: intint错误码索引
setMaxCacheFileSizecacheSize: longint错误码索引
IMediaPlayerCustomDataProvider 2 方法 / 0 属性
typescript
onReadData(buffer: ByteBuffer, bufferSize: int): int
onSeek(offset: long, whence: int): long

方法明细:2 / 2(参数、返回值、错误码)

方法参数返回值错误
onReadDatabuffer: ByteBuffer, bufferSize: intint错误码索引
onSeekoffset: long, whence: intlong错误码索引
IMediaPlayerObserver 11 方法 / 0 属性
typescript
onAudioVolumeIndication(volume: int): void
onMetaData(type: Constants.MediaPlayerMetadataType, data: byte[]): void
onPlayBufferUpdated(playCachedBuffer: long): void
onPlayerCacheStats(stats: CacheStatistics): void
onPlayerEvent(eventCode: Constants.MediaPlayerEvent, elapsedTime: long, message: String): void
onPlayerInfoUpdated(info: PlayerUpdatedInfo): void
onPlayerPlaybackStats(stats: PlayerPlaybackStats): void
onPlayerSrcInfoChanged(from: SrcInfo, to: SrcInfo): void
onPlayerStateChanged(state: Constants.MediaPlayerState, reason: Constants.MediaPlayerReason): void
onPositionChanged(positionMs: long, timestampMs: long): void
onPreloadEvent(src: String, event: Constants.MediaPlayerPreloadEvent): void

方法明细:11 / 11(参数、返回值、错误码)

方法参数返回值错误
onAudioVolumeIndicationvolume: intvoid错误码索引
onMetaDatatype: Constants.MediaPlayerMetadataType, data: byte[]void错误码索引
onPlayBufferUpdatedplayCachedBuffer: longvoid错误码索引
onPlayerCacheStatsstats: CacheStatisticsvoid错误码索引
onPlayerEventeventCode: Constants.MediaPlayerEvent, elapsedTime: long, message: Stringvoid错误码索引
onPlayerInfoUpdatedinfo: PlayerUpdatedInfovoid错误码索引
onPlayerPlaybackStatsstats: PlayerPlaybackStatsvoid错误码索引
onPlayerSrcInfoChangedfrom: SrcInfo, to: SrcInfovoid错误码索引
onPlayerStateChangedstate: Constants.MediaPlayerState, reason: Constants.MediaPlayerReasonvoid错误码索引
onPositionChangedpositionMs: long, timestampMs: longvoid错误码索引
onPreloadEventsrc: String, event: Constants.MediaPlayerPreloadEventvoid错误码索引
IMediaPlayerVideoFrameObserver 1 方法 / 0 属性
typescript
onFrame(frame: VideoFrame): void

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
onFrameframe: VideoFramevoid错误码索引
IMediaRecorderCallback 2 方法 / 0 属性
typescript
onRecorderInfoUpdated(channelId: String, uid: int, info: RecorderInfo): void
onRecorderStateChanged(channelId: String, uid: int, state: int, reason: int): void

方法明细:2 / 2(参数、返回值、错误码)

方法参数返回值错误
onRecorderInfoUpdatedchannelId: String, uid: int, info: RecorderInfovoid错误码索引
onRecorderStateChangedchannelId: String, uid: int, state: int, reason: intvoid错误码索引
IMetadataObserver 3 方法 / 0 属性
typescript
getMaxMetadataSize(): int
onMetadataReceived(metadata: AgoraMetadata): void
onReadyToSendMetadata(timeStampMs: long, sourceType: int): byte[]

方法明细:3 / 3(参数、返回值、错误码)

方法参数返回值错误
getMaxMetadataSize—int错误码索引
onMetadataReceivedmetadata: AgoraMetadatavoid错误码索引
onReadyToSendMetadatatimeStampMs: long, sourceType: intbyte[]错误码索引
IMusicContentCenterEventHandler 5 方法 / 0 属性
typescript
onLyricResult(requestId: String, songCode: long, lyricUrl: String, reason: int): void
onMusicChartsResult(requestId: String, list: MusicChartInfo[], reason: int): void
onMusicCollectionResult(requestId: String, page: int, pageSize: int, total: int, list: Music[], reason: int): void
onPreLoadEvent(requestId: String, songCode: long, percent: int, lyricUrl: String, state: int, reason: int): void
onSongSimpleInfoResult(requestId: String, songCode: long, simpleInfo: String, reason: int): void

方法明细:5 / 5(参数、返回值、错误码)

方法参数返回值错误
onLyricResultrequestId: String, songCode: long, lyricUrl: String, reason: intvoid错误码索引
onMusicChartsResultrequestId: String, list: MusicChartInfo[], reason: intvoid错误码索引
onMusicCollectionResultrequestId: String, page: int, pageSize: int, total: int, list: Music[], reason: intvoid错误码索引
onPreLoadEventrequestId: String, songCode: long, percent: int, lyricUrl: String, state: int, reason: intvoid错误码索引
onSongSimpleInfoResultrequestId: String, songCode: long, simpleInfo: String, reason: intvoid错误码索引
IRtcEngineEventHandler 84 方法 / 0 属性
typescript
onActiveSpeaker(uid: int): void
onAudioEffectFinished(soundId: int): void
onAudioMixingFinished(): void
onAudioMixingPositionChanged(position: long): void
onAudioMixingStateChanged(state: int, reason: int): void
onAudioPublishStateChanged(channel: String, oldState: int, newState: int, elapseSinceLastState: int): void
onAudioQuality(uid: int, quality: int, delay: short, lost: short): void
onAudioRouteChanged(routing: int): void
onAudioSubscribeStateChanged(channel: String, uid: int, oldState: int, newState: int, elapseSinceLastState: int): void
onAudioVolumeIndication(speakers: AudioVolumeInfo[], totalVolume: int): void
onCameraExposureAreaChanged(rect: Rect): void
onCameraFocusAreaChanged(rect: Rect): void
onCameraReady(): void
onChannelMediaRelayStateChanged(state: int, code: int): void
onClientRoleChangeFailed(reason: int, currentRole: int): void
onClientRoleChanged(oldRole: int, newRole: int, newRoleOptions: ClientRoleOptions): void
onConnectionBanned(): void
onConnectionInterrupted(): void
onConnectionLost(): void
onConnectionStateChanged(state: int, reason: int): void
onEncryptionError(errorType: int): void
onError(err: int): void
onErrorWithContext(extContext: ExtensionContext, error: int, message: String): void
onEventWithContext(extContext: ExtensionContext, key: String, value: String): void
onFacePositionChanged(imageWidth: int, imageHeight: int, faceRectArr: AgoraFacePositionInfo[]): void
onFirstLocalAudioFramePublished(elapsed: int): void
onFirstLocalVideoFrame(source: Constants.VideoSourceType, width: int, height: int, elapsed: int): void
onFirstLocalVideoFramePublished(source: Constants.VideoSourceType, elapsed: int): void
onFirstRemoteAudioDecoded(uid: int, elapsed: int): void
onFirstRemoteAudioFrame(uid: int, elapsed: int): void
onFirstRemoteVideoDecoded(uid: int, width: int, height: int, elapsed: int): void
onFirstRemoteVideoFrame(uid: int, width: int, height: int, elapsed: int): void
onJoinChannelSuccess(channel: String, uid: int, elapsed: int): void
onLastmileProbeResult(result: LastmileProbeResult): void
onLastmileQuality(quality: int): void
onLeaveChannel(stats: RtcStats): void
onLocalAudioStateChanged(state: int, reason: int): void
onLocalAudioStats(stats: LocalAudioStats): void
onLocalUserRegistered(uid: int, userAccount: String): void
onLocalVideoEvent(source: Constants.VideoSourceType, event: int): void
onLocalVideoStateChanged(source: Constants.VideoSourceType, state: int, reason: int): void
onLocalVideoStats(source: Constants.VideoSourceType, stats: LocalVideoStats): void
onLocalVideoTranscoderError(stream: LocalTranscoderConfiguration.TranscodingVideoStream, error: int): void
onMultipathStats(stats: MultipathStats): void
onNetworkQuality(uid: int, txQuality: int, rxQuality: int): void
onNetworkTypeChanged(type: int): void
onPermissionError(permission: int): void
onPermissionGranted(permission: int): void
onProxyConnected(channel: String, uid: int, proxyType: int, localProxyIp: String, elapsed: int): void
onRejoinChannelSuccess(channel: String, uid: int, elapsed: int): void
onRemoteAudioStateChanged(uid: int, state: int, reason: int, elapsed: int): void
onRemoteAudioStats(stats: RemoteAudioStats): void
onRemoteAudioTransportStats(uid: int, delay: int, lost: int, rxKBitRate: int): void
onRemoteSubscribeFallbackToAudioOnly(uid: int, isFallbackOrRecover: boolean): void
onRemoteVideoStateChanged(uid: int, state: int, reason: int, elapsed: int): void
onRemoteVideoStats(stats: RemoteVideoStats): void
onRemoteVideoTransportStats(uid: int, delay: int, lost: int, rxKBitRate: int): void
onRenewTokenResult(token: String, code: Constants.RenewTokenErrorCode): void
onRequestToken(): void
onRhythmPlayerStateChanged(state: int, reason: int): void
onRtcStats(stats: RtcStats): void
onRtmpStreamingEvent(url: String, event: int): void
onRtmpStreamingStateChanged(url: String, state: int, reason: int): void
onSnapshotTaken(uid: int, filePath: String, width: int, height: int, errCode: int): void
onStartedWithContext(extContext: ExtensionContext): void
onStoppedWithContext(extContext: ExtensionContext): void
onStreamMessage(uid: int, streamId: int, data: byte[]): void
onStreamMessageError(uid: int, streamId: int, error: int, missed: int, cached: int): void
onTokenPrivilegeWillExpire(token: String): void
onTranscodedStreamLayoutInfo(uid: int, info: VideoLayoutInfo): void
onTranscodingUpdated(): void
onUplinkNetworkInfoUpdated(info: UplinkNetworkInfo): void
onUserEnableLocalVideo(uid: int, enabled: boolean): void
onUserEnableVideo(uid: int, enabled: boolean): void
onUserInfoUpdated(uid: int, userInfo: UserInfo): void
onUserJoined(uid: int, elapsed: int): void
onUserMuteAudio(uid: int, muted: boolean): void
onUserMuteVideo(uid: int, muted: boolean): void
onUserOffline(uid: int, reason: int): void
onVideoPublishStateChanged(source: Constants.VideoSourceType, channel: String, oldState: int, newState: int, elapseSinceLastState: int): void
onVideoRenderingTracingResult(uid: int, currentEvent: Constants.MEDIA_TRACE_EVENT, tracingInfo: VideoRenderingTracingInfo): void
onVideoSizeChanged(source: Constants.VideoSourceType, uid: int, width: int, height: int, rotation: int): void
onVideoStopped(): void
onVideoSubscribeStateChanged(channel: String, uid: int, oldState: int, newState: int, elapseSinceLastState: int): void

方法明细:84 / 84(参数、返回值、错误码)

方法参数返回值错误
onActiveSpeakeruid: intvoid错误码索引
onAudioEffectFinishedsoundId: intvoid错误码索引
onAudioMixingFinished—void错误码索引
onAudioMixingPositionChangedposition: longvoid错误码索引
onAudioMixingStateChangedstate: int, reason: intvoid错误码索引
onAudioPublishStateChangedchannel: String, oldState: int, newState: int, elapseSinceLastState: intvoid错误码索引
onAudioQualityuid: int, quality: int, delay: short, lost: shortvoid错误码索引
onAudioRouteChangedrouting: intvoid错误码索引
onAudioSubscribeStateChangedchannel: String, uid: int, oldState: int, newState: int, elapseSinceLastState: intvoid错误码索引
onAudioVolumeIndicationspeakers: AudioVolumeInfo[], totalVolume: intvoid错误码索引
onCameraExposureAreaChangedrect: Rectvoid错误码索引
onCameraFocusAreaChangedrect: Rectvoid错误码索引
onCameraReady—void错误码索引
onChannelMediaRelayStateChangedstate: int, code: intvoid错误码索引
onClientRoleChangeFailedreason: int, currentRole: intvoid错误码索引
onClientRoleChangedoldRole: int, newRole: int, newRoleOptions: ClientRoleOptionsvoid错误码索引
onConnectionBanned—void错误码索引
onConnectionInterrupted—void错误码索引
onConnectionLost—void错误码索引
onConnectionStateChangedstate: int, reason: intvoid错误码索引
onEncryptionErrorerrorType: intvoid错误码索引
onErrorerr: intvoid错误码索引
onErrorWithContextextContext: ExtensionContext, error: int, message: Stringvoid错误码索引
onEventWithContextextContext: ExtensionContext, key: String, value: Stringvoid错误码索引
onFacePositionChangedimageWidth: int, imageHeight: int, faceRectArr: AgoraFacePositionInfo[]void错误码索引
onFirstLocalAudioFramePublishedelapsed: intvoid错误码索引
onFirstLocalVideoFramesource: Constants.VideoSourceType, width: int, height: int, elapsed: intvoid错误码索引
onFirstLocalVideoFramePublishedsource: Constants.VideoSourceType, elapsed: intvoid错误码索引
onFirstRemoteAudioDecodeduid: int, elapsed: intvoid错误码索引
onFirstRemoteAudioFrameuid: int, elapsed: intvoid错误码索引
onFirstRemoteVideoDecodeduid: int, width: int, height: int, elapsed: intvoid错误码索引
onFirstRemoteVideoFrameuid: int, width: int, height: int, elapsed: intvoid错误码索引
onJoinChannelSuccesschannel: String, uid: int, elapsed: intvoid错误码索引
onLastmileProbeResultresult: LastmileProbeResultvoid错误码索引
onLastmileQualityquality: intvoid错误码索引
onLeaveChannelstats: RtcStatsvoid错误码索引
onLocalAudioStateChangedstate: int, reason: intvoid错误码索引
onLocalAudioStatsstats: LocalAudioStatsvoid错误码索引
onLocalUserRegistereduid: int, userAccount: Stringvoid错误码索引
onLocalVideoEventsource: Constants.VideoSourceType, event: intvoid错误码索引
onLocalVideoStateChangedsource: Constants.VideoSourceType, state: int, reason: intvoid错误码索引
onLocalVideoStatssource: Constants.VideoSourceType, stats: LocalVideoStatsvoid错误码索引
onLocalVideoTranscoderErrorstream: LocalTranscoderConfiguration.TranscodingVideoStream, error: intvoid错误码索引
onMultipathStatsstats: MultipathStatsvoid错误码索引
onNetworkQualityuid: int, txQuality: int, rxQuality: intvoid错误码索引
onNetworkTypeChangedtype: intvoid错误码索引
onPermissionErrorpermission: intvoid错误码索引
onPermissionGrantedpermission: intvoid错误码索引
onProxyConnectedchannel: String, uid: int, proxyType: int, localProxyIp: String, elapsed: intvoid错误码索引
onRejoinChannelSuccesschannel: String, uid: int, elapsed: intvoid错误码索引
onRemoteAudioStateChangeduid: int, state: int, reason: int, elapsed: intvoid错误码索引
onRemoteAudioStatsstats: RemoteAudioStatsvoid错误码索引
onRemoteAudioTransportStatsuid: int, delay: int, lost: int, rxKBitRate: intvoid错误码索引
onRemoteSubscribeFallbackToAudioOnlyuid: int, isFallbackOrRecover: booleanvoid错误码索引
onRemoteVideoStateChangeduid: int, state: int, reason: int, elapsed: intvoid错误码索引
onRemoteVideoStatsstats: RemoteVideoStatsvoid错误码索引
onRemoteVideoTransportStatsuid: int, delay: int, lost: int, rxKBitRate: intvoid错误码索引
onRenewTokenResulttoken: String, code: Constants.RenewTokenErrorCodevoid错误码索引
onRequestToken—void错误码索引
onRhythmPlayerStateChangedstate: int, reason: intvoid错误码索引
onRtcStatsstats: RtcStatsvoid错误码索引
onRtmpStreamingEventurl: String, event: intvoid错误码索引
onRtmpStreamingStateChangedurl: String, state: int, reason: intvoid错误码索引
onSnapshotTakenuid: int, filePath: String, width: int, height: int, errCode: intvoid错误码索引
onStartedWithContextextContext: ExtensionContextvoid错误码索引
onStoppedWithContextextContext: ExtensionContextvoid错误码索引
onStreamMessageuid: int, streamId: int, data: byte[]void错误码索引
onStreamMessageErroruid: int, streamId: int, error: int, missed: int, cached: intvoid错误码索引
onTokenPrivilegeWillExpiretoken: Stringvoid错误码索引
onTranscodedStreamLayoutInfouid: int, info: VideoLayoutInfovoid错误码索引
onTranscodingUpdated—void错误码索引
onUplinkNetworkInfoUpdatedinfo: UplinkNetworkInfovoid错误码索引
onUserEnableLocalVideouid: int, enabled: booleanvoid错误码索引
onUserEnableVideouid: int, enabled: booleanvoid错误码索引
onUserInfoUpdateduid: int, userInfo: UserInfovoid错误码索引
onUserJoineduid: int, elapsed: intvoid错误码索引
onUserMuteAudiouid: int, muted: booleanvoid错误码索引
onUserMuteVideouid: int, muted: booleanvoid错误码索引
onUserOfflineuid: int, reason: intvoid错误码索引
onVideoPublishStateChangedsource: Constants.VideoSourceType, channel: String, oldState: int, newState: int, elapseSinceLastState: intvoid错误码索引
onVideoRenderingTracingResultuid: int, currentEvent: Constants.MEDIA_TRACE_EVENT, tracingInfo: VideoRenderingTracingInfovoid错误码索引
onVideoSizeChangedsource: Constants.VideoSourceType, uid: int, width: int, height: int, rotation: intvoid错误码索引
onVideoStopped—void错误码索引
onVideoSubscribeStateChangedchannel: String, uid: int, oldState: int, newState: int, elapseSinceLastState: intvoid错误码索引
IRtcEngineReleaseCallback 1 方法 / 0 属性
typescript
onEngineReleased(): void

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
onEngineReleased—void错误码索引
IVideoEffectObject 10 方法 / 0 属性
typescript
addOrUpdateVideoEffect(nodeId: int, templateName: String): int
getVideoEffectBoolParam(option: String, key: String): boolean
getVideoEffectFloatParam(option: String, key: String): float
getVideoEffectIntParam(option: String, key: String): int
performVideoEffectAction(nodeId: int, actionId: VIDEO_EFFECT_ACTION): int
removeVideoEffect(nodeId: int): int
setVideoEffectBoolParam(option: String, key: String, value: boolean): int
setVideoEffectFloatParam(option: String, key: String, value: float): int
setVideoEffectIntParam(option: String, key: String, value: int): int
setVideoEffectStringParam(option: String, key: String, value: String): int

方法明细:10 / 10(参数、返回值、错误码)

方法参数返回值错误
addOrUpdateVideoEffectnodeId: int, templateName: Stringint错误码索引
getVideoEffectBoolParamoption: String, key: Stringboolean错误码索引
getVideoEffectFloatParamoption: String, key: Stringfloat错误码索引
getVideoEffectIntParamoption: String, key: Stringint错误码索引
performVideoEffectActionnodeId: int, actionId: VIDEO_EFFECT_ACTIONint错误码索引
removeVideoEffectnodeId: intint错误码索引
setVideoEffectBoolParamoption: String, key: String, value: booleanint错误码索引
setVideoEffectFloatParamoption: String, key: String, value: floatint错误码索引
setVideoEffectIntParamoption: String, key: String, value: intint错误码索引
setVideoEffectStringParamoption: String, key: String, value: Stringint错误码索引
IVideoEncodedFrameObserver 1 方法 / 0 属性
typescript
onEncodedVideoFrameReceived(channelId: String, remoteUid: int, buffer: ByteBuffer, info: EncodedVideoFrameInfo): boolean

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
onEncodedVideoFrameReceivedchannelId: String, remoteUid: int, buffer: ByteBuffer, info: EncodedVideoFrameInfoboolean错误码索引
IVideoFrameObserver 8 方法 / 0 属性
typescript
getMirrorApplied(): boolean
getObservedFramePosition(): int
getRotationApplied(): boolean
getVideoFormatPreference(): int
getVideoFrameProcessMode(): int
onCaptureVideoFrame(sourceType: int, videoFrame: VideoFrame): boolean
onPreEncodeVideoFrame(sourceType: int, videoFrame: VideoFrame): boolean
onRenderVideoFrame(channelId: String, uid: int, videoFrame: VideoFrame): boolean

方法明细:8 / 8(参数、返回值、错误码)

方法参数返回值错误
getMirrorApplied—boolean错误码索引
getObservedFramePosition—int错误码索引
getRotationApplied—boolean错误码索引
getVideoFormatPreference—int错误码索引
getVideoFrameProcessMode—int错误码索引
onCaptureVideoFramesourceType: int, videoFrame: VideoFrameboolean错误码索引
onPreEncodeVideoFramesourceType: int, videoFrame: VideoFrameboolean错误码索引
onRenderVideoFramechannelId: String, uid: int, videoFrame: VideoFrameboolean错误码索引
LastmileProbeConfig 0 方法 / 4 属性
属性类型只读
probeUplinkboolean否
probeDownlinkboolean否
expectedUplinkBitrateint否
expectedDownlinkBitrateint否
LastmileProbeOneWayResult 0 方法 / 3 属性
属性类型只读
packetLossRateint否
jitterint否
availableBandwidthint否
LastmileProbeResult 0 方法 / 4 属性
属性类型只读
stateshort否
rttint否
uplinkReportLastmileProbeOneWayResult否
downlinkReportLastmileProbeOneWayResult否
LeaveChannelOptions 0 方法 / 3 属性
属性类型只读
stopAudioMixingboolean否
stopAllEffectboolean否
stopMicrophoneRecordingboolean否
LiveTranscoding 21 方法 / 15 属性
typescript
addBackgroundImage(backgroundImage: AgoraImage): void
addUser(user: TranscodingUser): int
addWatermark(watermark: AgoraImage): void
getAdvancedFeatures(): Map
getBackgroundColor(): int
getBackgroundImageList(): ArrayList
getBlue(): int
getGreen(): int
getRed(): int
getUserCount(): int
getUsers(): ArrayList
getWatermarkList(): ArrayList
removeBackgroundImage(backgroundImage: AgoraImage): boolean
removeUser(uid: int): int
removeWatermark(watermark: AgoraImage): boolean
setAdvancedFeatures(featureName: String, opened: Boolean): void
setBackgroundColor(color: int): void
setBackgroundColor(red: int, green: int, blue: int): void
setBlue(blue: int): void
setGreen(green: int): void
setRed(red: int): void
setUsers(users: ArrayList): void
setUsers(users: Map): void

方法明细:21 / 21(参数、返回值、错误码)

方法参数返回值错误
addBackgroundImagebackgroundImage: AgoraImagevoid错误码索引
addUseruser: TranscodingUserint错误码索引
addWatermarkwatermark: AgoraImagevoid错误码索引
getAdvancedFeatures—Map错误码索引
getBackgroundColor—int错误码索引
getBackgroundImageList—ArrayList错误码索引
getBlue—int错误码索引
getGreen—int错误码索引
getRed—int错误码索引
getUserCount—int错误码索引
getUsers—ArrayList错误码索引
getWatermarkList—ArrayList错误码索引
removeBackgroundImagebackgroundImage: AgoraImageboolean错误码索引
removeUseruid: intint错误码索引
removeWatermarkwatermark: AgoraImageboolean错误码索引
setAdvancedFeaturesfeatureName: String, opened: Booleanvoid错误码索引
setBackgroundColorcolor: intvoid错误码索引
setBlueblue: intvoid错误码索引
setGreengreen: intvoid错误码索引
setRedred: intvoid错误码索引
setUsersusers: ArrayListvoid错误码索引
属性类型只读
widthint否
heightint否
videoBitrateint否
videoFramerateint否
lowLatencyunknown否
videoGopint否
audioSampleRateAudioSampleRateType否
audioBitrateint否
audioChannelsint否
audioCodecProfileAudioCodecProfileType否
videoCodecProfileVideoCodecProfileType否
videoCodecTypeVideoCodecType否
userCountunknown否
userConfigExtraInfoString否
metadataunknown否
LocalAccessPointConfiguration 0 方法 / 6 属性
属性类型只读
ipListArrayList否
domainListArrayList否
verifyDomainNameString否
modeint否
disableAutboolean否
advancedConfigAdvancedConfigInfo否
LocalAudioMixerConfiguration 0 方法 / 2 属性
属性类型只读
audioInputStreamsArrayList否
syncWithLocalMicboolean否
LocalAudioStats 0 方法 / 9 属性
属性类型只读
numChannelsint否
sentSampleRateint否
sentBitrateint否
internalCodecint否
txPacketLossRateint否
audioDeviceDelayint否
audioPlayoutDelayint否
earMonitorDelayint否
aecEstimatedDelayint否
LocalSpatialAudioConfig 0 方法 / 1 属性
属性类型只读
mRtcEngineRtcEngine否
LocalTranscoderConfiguration 0 方法 / 3 属性
属性类型只读
transcodingVideoStreamsArrayList否
syncWithPrimaryCameraboolean否
videoOutputConfigurationVideoEncoderConfiguration否
LocalVideoStats 0 方法 / 23 属性
属性类型只读
uidint否
sentBitrateint否
sentFrameRateint否
captureFrameRateint否
captureFrameWidthint否
captureFrameHeightint否
regulatedCaptureFrameRateint否
regulatedCaptureFrameWidthint否
regulatedCaptureFrameHeightint否
encoderOutputFrameRateint否
rendererOutputFrameRateint否
targetBitrateint否
targetFrameRateint否
qualityAdaptIndicationint否
encodedBitrateint否
encodedFrameWidthint否
encodedFrameHeightint否
encodedFrameCountint否
codecTypeint否
txPacketLossRateint否
captureBrightnessLevelint否
dualStreamEnabledboolean否
hwEncoderAcceleratingint否
LogConfig 0 方法 / 3 属性
属性类型只读
filePathString否
fileSizeInKBint否
levelint否
LogUploadServerInfo 0 方法 / 4 属性
属性类型只读
serverDomainString否
serverPathString否
serverPortint否
serverHttpsboolean否
LowLightEnhanceOptions 0 方法 / 6 属性
属性类型只读
LOW_LIGHT_ENHANCE_AUTOint否
LOW_LIGHT_ENHANCE_MANUALint否
LOW_LIGHT_ENHANCE_LEVEL_HIGH_QUALITYint否
LOW_LIGHT_ENHANCE_LEVEL_FASTint否
lowlightEnhanceModeint否
lowlightEnhanceLevelint否
MediaPlayerSource 0 方法 / 9 属性
属性类型只读
urlString否
uriString否
startPoslong否
autoPlayboolean否
enableCacheboolean否
enableMultiAudioTrackboolean否
isAgoraSourceBoolean否
isLiveSourceBoolean否
providerIMediaPlayerCustomDataProvider否
MediaRecorderConfiguration 0 方法 / 11 属性
属性类型只读
storagePathString否
containerFormatint否
streamTypeint否
maxDurationMsint否
recorderInfoUpdateIntervalint否
widthint否
heightint否
fpsint否
sample_rateint否
channel_numint否
videoSourceTypeint否
MediaStreamInfo 0 方法 / 13 属性
属性类型只读
streamIndexint否
mediaStreamTypeint否
codecNameString否
languageString否
videoFrameRateint否
videoBitRateint否
videoWidthint否
videoHeightint否
videoRotationint否
audioSampleRateint否
audioChannelsint否
audioBytesPerSampleint否
durationlong否
MixedAudioStream 0 方法 / 4 属性
属性类型只读
remoteUserUidint否
channelIdString否
sourceTypeConstants.AudioSourceType否
trackIdint否
MultipathStats 0 方法 / 8 属性
属性类型只读
lanTxBytesint否
lanRxBytesint否
wifiTxBytesint否
wifiRxBytesint否
mobileTxBytesint否
mobileRxBytesint否
activePathNumint否
pathStatsPathStats[]否
Music 0 方法 / 11 属性
属性类型只读
songCodelong否
nameString否
singerString否
posterString否
releaseTimeString否
typeint否
pitchTypeint否
durationSint否
lyricTypesint[]否
mvPropertiesMvProperty[]否
climaxSegmentsClimaxSegment[]否
MusicCacheInfo 0 方法 / 2 属性
属性类型只读
songCodelong否
statusint否
MusicCacheStatusType 0 方法 / 2 属性
属性类型只读
MUSIC_CACHE_STATUS_TYPE_CACHEDint否
MUSIC_CACHE_STATUS_TYPE_CACHINGint否
MusicChartInfo 0 方法 / 2 属性
属性类型只读
nameString否
typeint否
MusicContentCenterConfiguration 0 方法 / 5 属性
属性类型只读
appIdString否
tokenString否
mccUidlong否
maxCacheSizeint否
eventHandlerIMusicContentCenterEventHandler否
MusicContentCenterStateReason 0 方法 / 8 属性
属性类型只读
MUSIC_CONTENT_CENTER_STATE_REASON_OKint否
MUSIC_CONTENT_CENTER_STATE_REASON_ERRORint否
MUSIC_CONTENT_CENTER_STATE_REASON_GATEWAYint否
MUSIC_CONTENT_CENTER_STATE_REASON_PERMISSION_AND_RESOURCEint否
MUSIC_CONTENT_CENTER_STATE_REASON_INTERNAL_DATA_PARSEint否
MUSIC_CONTENT_CENTER_STATE_REASON_MUSIC_LOADINGint否
MUSIC_CONTENT_CENTER_STATE_REASON_MUSIC_DECRYPTIONint否
MUSIC_CONTENT_CENTER_STATE_REASON_HTTP_INTERNALint否
PathStats 0 方法 / 3 属性
属性类型只读
pathTypeint否
txKBitRateint否
rxKBitRateint否
Player 18 方法 / 0 属性
typescript
Player(rte: Rte, initialConfig: PlayerInitialConfig): unknown
getConfigs(config: PlayerConfig): void
getInfo(info: PlayerInfo): void
getPosition(): long
getStats(callback: PlayerGetStatsCallback): void
muteAudio(mute: boolean): void
muteVideo(mute: boolean): void
openWithUrl(url: String, startTime: long, callback: AsyncCallback): void
pause(): void
play(): void
preloadWithUrl(url: String): void
registerObserver(observer: PlayerObserver): void
seek(newTime: long): void
setCanvas(canvas: Canvas): void
setConfigs(config: PlayerConfig): void
stop(): void
switchWithUrl(url: String, syncPts: boolean, callback: AsyncCallback): void
unregisterObserver(observer: PlayerObserver): void

方法明细:18 / 18(参数、返回值、错误码)

方法参数返回值错误
Playerrte: Rte, initialConfig: PlayerInitialConfigunknown错误码索引
getConfigsconfig: PlayerConfigvoid错误码索引
getInfoinfo: PlayerInfovoid错误码索引
getPosition—long错误码索引
getStatscallback: PlayerGetStatsCallbackvoid错误码索引
muteAudiomute: booleanvoid错误码索引
muteVideomute: booleanvoid错误码索引
openWithUrlurl: String, startTime: long, callback: AsyncCallbackvoid错误码索引
pause—void错误码索引
play—void错误码索引
preloadWithUrlurl: Stringvoid错误码索引
registerObserverobserver: PlayerObservervoid错误码索引
seeknewTime: longvoid错误码索引
setCanvascanvas: Canvasvoid错误码索引
setConfigsconfig: PlayerConfigvoid错误码索引
stop—void错误码索引
switchWithUrlurl: String, syncPts: boolean, callback: AsyncCallbackvoid错误码索引
unregisterObserverobserver: PlayerObservervoid错误码索引
PlayerConfig 12 方法 / 0 属性
typescript
getAbrFallbackLayer(): Constants.AbrFallbackLayer
getAbrSubscriptionLayer(): Constants.AbrSubscriptionLayer
getAutoPlay(): boolean
getLoopCount(): int
getPlaybackSpeed(): int
getPlayoutVolume(): int
setAbrFallbackLayer(fallbackLayer: Constants.AbrFallbackLayer): void
setAbrSubscriptionLayer(subscriptionLayer: Constants.AbrSubscriptionLayer): void
setAutoPlay(autoPlay: boolean): void
setLoopCount(count: int): void
setPlaybackSpeed(speed: int): void
setPlayoutVolume(volume: int): void

方法明细:12 / 12(参数、返回值、错误码)

方法参数返回值错误
getAbrFallbackLayer—Constants.AbrFallbackLayer错误码索引
getAbrSubscriptionLayer—Constants.AbrSubscriptionLayer错误码索引
getAutoPlay—boolean错误码索引
getLoopCount—int错误码索引
getPlaybackSpeed—int错误码索引
getPlayoutVolume—int错误码索引
setAbrFallbackLayerfallbackLayer: Constants.AbrFallbackLayervoid错误码索引
setAbrSubscriptionLayersubscriptionLayer: Constants.AbrSubscriptionLayervoid错误码索引
setAutoPlayautoPlay: booleanvoid错误码索引
setLoopCountcount: intvoid错误码索引
setPlaybackSpeedspeed: intvoid错误码索引
setPlayoutVolumevolume: intvoid错误码索引
PlayerGetStatsCallback 1 方法 / 0 属性
typescript
onResult(playerStats: PlayerStats, error: Error): void

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
onResultplayerStats: PlayerStats, error: Errorvoid错误码索引
PlayerInfo 14 方法 / 0 属性
typescript
abrSubscriptionLayer(): Constants.AbrSubscriptionLayer
audioBitsPerSample(): int
audioChannels(): int
audioSampleRate(): int
currentUrl(): String
duration(): long
hasAudio(): boolean
hasVideo(): boolean
isAudioMuted(): boolean
isVideoMuted(): boolean
state(): int
streamCount(): int
videoHeight(): int
videoWidth(): int

方法明细:14 / 14(参数、返回值、错误码)

方法参数返回值错误
abrSubscriptionLayer—Constants.AbrSubscriptionLayer错误码索引
audioBitsPerSample—int错误码索引
audioChannels—int错误码索引
audioSampleRate—int错误码索引
currentUrl—String错误码索引
duration—long错误码索引
hasAudio—boolean错误码索引
hasVideo—boolean错误码索引
isAudioMuted—boolean错误码索引
isVideoMuted—boolean错误码索引
state—int错误码索引
streamCount—int错误码索引
videoHeight—int错误码索引
videoWidth—int错误码索引
PlayerObserver 7 方法 / 0 属性
typescript
onAudioVolumeIndication(volume: int): void
onEvent(event: int): void
onMetadata(type: int, data: byte[]): void
onPlayerInfoUpdated(info: PlayerInfo): void
onPositionChanged(curr_time: long, utc_time: long): void
onResolutionChanged(width: int, height: int): void
onStateChanged(old_state: int, new_state: int, error: Error): void

方法明细:7 / 7(参数、返回值、错误码)

方法参数返回值错误
onAudioVolumeIndicationvolume: intvoid错误码索引
onEventevent: intvoid错误码索引
onMetadatatype: int, data: byte[]void错误码索引
onPlayerInfoUpdatedinfo: PlayerInfovoid错误码索引
onPositionChangedcurr_time: long, utc_time: longvoid错误码索引
onResolutionChangedwidth: int, height: intvoid错误码索引
onStateChangedold_state: int, new_state: int, error: Errorvoid错误码索引
PlayerPlaybackStats 0 方法 / 4 属性
属性类型只读
videoFpslong否
videoBitrateInKbpslong否
audioBitrateInKbpslong否
totalBitrateInKbpslong否
PlayerStats 0 方法 / 0 属性

无公开成员。

PlayerUpdatedInfo 0 方法 / 6 属性
属性类型只读
deviceIdString否
videoHeightlong否
videoWidthlong否
audioSampleRatelong否
audioChannelslong否
audioBitsPerSamplelong否
PreloadState 0 方法 / 4 属性
属性类型只读
PRELOAD_STATE_COMPLETEDint否
PRELOAD_STATE_FAILEDint否
PRELOAD_STATE_PRELOADINGint否
PRELOAD_STATE_REMOVEDint否
RecorderInfo 0 方法 / 3 属性
属性类型只读
fileNameString否
durationMsint否
fileSizeint否
RecorderStreamInfo 0 方法 / 3 属性
属性类型只读
uidint否
channelIdString否
recorderStreamTypeint否
Rectangle 0 方法 / 4 属性
属性类型只读
xint否
yint否
widthint否
heightint否
RemoteAudioStats 0 方法 / 19 属性
属性类型只读
uidint否
qualityint否
networkTransportDelayint否
jitterBufferDelayint否
audioLossRateint否
numChannelsint否
receivedSampleRateint否
receivedBitrateint否
totalFrozenTimeint否
frozenRateint否
mosValueint否
frozenRateByCustomPlcCountint否
plcCountint否
totalActiveTimelong否
publishDurationlong否
qoeQualityint否
qualityChangedReasonint否
rxAudioBytesint否
e2eDelayint否
RemoteVideoStats 0 方法 / 18 属性
属性类型只读
uidint否
delayint否
e2eDelayint否
widthint否
heightint否
receivedBitrateint否
decoderOutputFrameRateint否
rendererOutputFrameRateint否
frameLossRateint否
packetLossRateint否
rxStreamTypeint否
totalFrozenTimeint否
frozenRateint否
avSyncTimeMsint否
totalActiveTimelong否
publishDurationlong否
mosValueint否
rxVideoBytesint否
RemoteVoicePositionInfo 0 方法 / 2 属性
属性类型只读
positionfloat[]否
forwardfloat[]否
RtcConnection 0 方法 / 2 属性
属性类型只读
localUidint否
channelIdString否
RtcEngine 256 方法 / 0 属性
typescript
addExtension(providerName: String): void
addHandler(handler: IRtcEngineEventHandler): void
addVideoWatermark(watermark: AgoraImage): int
addVideoWatermark(watermarkUrl: String, options: WatermarkOptions): int
addVideoWatermark(config: WatermarkConfig): int
adjustAudioMixingPlayoutVolume(volume: int): int
adjustAudioMixingPublishVolume(volume: int): int
adjustAudioMixingVolume(volume: int): int
adjustCustomAudioPlayoutVolume(trackId: int, volume: int): int
adjustCustomAudioPublishVolume(trackId: int, volume: int): int
adjustPlaybackSignalVolume(volume: int): int
adjustRecordingSignalVolume(volume: int): int
adjustUserPlaybackSignalVolume(uid: int, volume: int): int
clearVideoWatermarks(): int
complain(callId: String, description: String): int
configRhythmPlayer(config: AgoraRhythmPlayerConfig): int
create(context: Context, appId: String, handler: IRtcEngineEventHandler): RtcEngine
create(config: RtcEngineConfig): RtcEngine
createCustomAudioTrack(trackType: Constants.AudioTrackType, config: AudioTrackConfig): int
createCustomVideoTrack(): int
createDataStream(reliable: boolean, ordered: boolean): int
createDataStream(config: DataStreamConfig): int
createMediaPlayer(): IMediaPlayer
createMediaRecorder(info: RecorderStreamInfo): AgoraMediaRecorder
createVideoEffectObject(bundlePath: String, sourceType: Constants.MediaSourceType): IVideoEffectObject
destroy(): void
destroy(callback: IRtcEngineReleaseCallback): void
destroyCustomAudioTrack(trackId: int): int
destroyCustomVideoTrack(video_track_id: int): int
destroyMediaRecorder(mediaRecorder: AgoraMediaRecorder): void
destroyVideoEffectObject(videoEffectObject: IVideoEffectObject): int
disableAudio(): int
disableAudioSpectrumMonitor(): int
disableVideo(): int
enableAudio(): int
enableAudioSpectrumMonitor(intervalInMS: int): int
enableAudioVolumeIndication(interval: int, smooth: int, reportVad: boolean): int
enableContentInspect(enabled: boolean, config: ContentInspectConfig): int
enableCustomAudioLocalPlayback(trackId: int, enabled: boolean): int
enableDualStreamMode(enabled: boolean): int
enableDualStreamMode(enabled: boolean, streamConfig: SimulcastStreamConfig): int
enableEncryption(enabled: boolean, config: EncryptionConfig): int
enableExtension(provider: String, extension: String, enable: boolean): int
enableFaceDetection(enabled: boolean): int
enableInEarMonitoring(enabled: boolean): int
enableInEarMonitoring(enabled: boolean, includeAudioFilters: int): int
enableInstantMediaRendering(): int
enableLocalAudio(enabled: boolean): int
enableLocalVideo(enabled: boolean): int
enableSoundPositionIndication(enabled: boolean): int
enableSpatialAudio(enabled: boolean): int
enableVideo(): int
enableVideoImageSource(enabled: boolean, options: ImageTrackOptions): int
enableVirtualBackground(enabled: boolean, backgroundSource: VirtualBackgroundSource, segproperty: SegmentationProperty): int
enableVirtualBackground(enabled: boolean, backgroundSource: VirtualBackgroundSource, segproperty: SegmentationProperty, sourceType: Constants.MediaSourceType): int
enableVoiceAITuner(enabled: boolean, type: Constants.VOICE_AI_TUNER_TYPE): int
enableWebSdkInteroperability(enabled: boolean): int
getAudioDeviceInfo(): DeviceInfo
getAudioEffectManager(): IAudioEffectManager
getAudioMixingCurrentPosition(): int
getAudioMixingDuration(): int
getAudioMixingPlayoutVolume(): int
getAudioMixingPublishVolume(): int
getAudioTrackCount(): int
getCallId(): String
getCameraMaxZoomFactor(): float
getConnectionState(): int
getCurrentMonotonicTimeInMs(): long
getEffectCurrentPosition(soundId: int): int
getEffectDuration(filePath: String): int
getEffectsVolume(): double
getErrorDescription(error: int): String
getExtensionProperty(provider: String, extension: String, key: String): String
getExtensionProperty(provider: String, extension: String, key: String, sourceType: Constants.MediaSourceType): String
getFaceShapeAreaOptions(shapeArea: int, sourceType: Constants.MediaSourceType): FaceShapeAreaOptions
getFaceShapeAreaOptions(shapeArea: int): FaceShapeAreaOptions
getFaceShapeBeautyOptions(sourceType: Constants.MediaSourceType): FaceShapeBeautyOptions
getFaceShapeBeautyOptions(): FaceShapeBeautyOptions
getNativeHandle(): long
getNetworkType(): int
getNtpWallTimeInMs(): long
getSdkVersion(): String
getUserInfoByUid(uid: int, userInfo: UserInfo): int
getUserInfoByUserAccount(userAccount: String, userInfo: UserInfo): int
getVolumeOfEffect(soundId: int): int
isCameraAutoFocusFaceModeSupported(): boolean
isCameraExposurePositionSupported(): boolean
isCameraExposureSupported(): boolean
isCameraFaceDetectSupported(): boolean
isCameraFocusSupported(): boolean
isCameraTorchSupported(): boolean
isCameraZoomSupported(): boolean
isFeatureAvailableOnDevice(type: int): boolean
isSpeakerphoneEnabled(): boolean
isTextureEncodeSupported(): boolean
joinChannel(token: String, channelId: String, optionalInfo: String, uid: int): int
joinChannel(token: String, channelId: String, uid: int, options: ChannelMediaOptions): int
joinChannelWithUserAccount(token: String, channelName: String, userAccount: String): int
joinChannelWithUserAccount(token: String, channelName: String, userAccount: String, options: ChannelMediaOptions): int
leaveChannel(): int
leaveChannel(options: LeaveChannelOptions): int
muteAllRemoteAudioStreams(muted: boolean): int
muteAllRemoteVideoStreams(muted: boolean): int
muteLocalAudioStream(muted: boolean): int
muteLocalVideoStream(muted: boolean): int
muteRecordingSignal(muted: boolean): int
muteRemoteAudioStream(uid: int, muted: boolean): int
muteRemoteVideoStream(uid: int, muted: boolean): int
pauseAllChannelMediaRelay(): int
pauseAllEffects(): int
pauseAudioMixing(): int
pauseEffect(soundId: int): int
playAllEffects(loopCount: int, pitch: double, pan: double, gain: double, publish: boolean): int
playEffect(soundId: int, filePath: String, loopCount: int, pitch: double, pan: double, gain: double, publish: boolean): int
playEffect(soundId: int, filePath: String, loopCount: int, pitch: double, pan: double, gain: double, publish: boolean, startPos: int): int
preloadChannel(token: String, channelName: String, optionalUid: int): int
preloadChannelWithUserAccount(token: String, channelName: String, userAccount: String): int
preloadEffect(soundId: int, filePath: String, startPos: int): int
preloadEffect(soundId: int, filePath: String): int
pullPlaybackAudioFrame(data: byte[], lengthInByte: int): int
pullPlaybackAudioFrame(data: ByteBuffer, lengthInByte: int): int
pushExternalAudioFrame(data: byte[], timestamp: long, sampleRate: int, channels: int, bytesPerSample: Constants.BytesPerSample, trackId: int): int
pushExternalVideoFrame(frame: VideoFrame): boolean
pushExternalVideoFrame(frame: AgoraVideoFrame): boolean
pushExternalVideoFrameById(frame: VideoFrame, videoTrackId: int): int
pushExternalVideoFrameById(frame: AgoraVideoFrame, videoTrackId: int): int
queryCameraFocalLengthCapability(): AgoraFocalLengthInfo[]
queryCodecCapability(): CodecCapInfo[]
queryDeviceScore(): int
queryScreenCaptureCapability(): int
rate(callId: String, rating: int, description: String): int
registerAudioEncodedFrameObserver(config: AudioEncodedFrameObserverConfig, observer: IAudioEncodedFrameObserver): int
registerAudioFrameObserver(observer: IAudioFrameObserver): int
registerAudioSpectrumObserver(observer: IAudioSpectrumObserver): int
registerExtension(provider: String, extension: String, sourceType: Constants.MediaSourceType): int
registerLocalUserAccount(appId: String, userAccount: String): int
registerMediaMetadataObserver(observer: IMetadataObserver, type: int): int
registerVideoEncodedFrameObserver(receiver: IVideoEncodedFrameObserver): int
registerVideoFrameObserver(observer: IVideoFrameObserver): int
removeHandler(handler: IRtcEngineEventHandler): void
removeVideoWatermark(id: String): int
renewToken(token: String): int
resumeAllChannelMediaRelay(): int
resumeAllEffects(): int
resumeAudioMixing(): int
resumeEffect(soundId: int): int
selectAudioTrack(audioIndex: int): int
sendCustomReportMessage(id: String, category: String, event: String, label: String, value: int): int
sendStreamMessage(streamId: int, message: byte[]): int
setAINSMode(enabled: boolean, mode: int): int
setAVSyncSource(channelId: String, uid: int): int
setAdvancedAudioOptions(options: AdvancedAudioOptions): int
setAudioEffectParameters(preset: int, param1: int, param2: int): int
setAudioEffectPreset(preset: int): int
setAudioMixingDualMonoMode(mode: Constants.AudioMixingDualMonoMode): int
setAudioMixingPitch(pitch: int): int
setAudioMixingPlaybackSpeed(speed: int): int
setAudioMixingPosition(pos: int): int
setAudioProfile(profile: int, scenario: int): int
setAudioProfile(profile: int): int
setAudioScenario(scenario: int): int
setBeautyEffectOptions(enabled: boolean, options: BeautyOptions): int
setBeautyEffectOptions(enabled: boolean, options: BeautyOptions, sourceType: Constants.MediaSourceType): int
setCameraAutoFocusFaceModeEnabled(enabled: boolean): int
setCameraCapturerConfiguration(config: CameraCapturerConfiguration): int
setCameraExposureFactor(factor: int): int
setCameraExposurePosition(positionXinView: float, positionYinView: float): int
setCameraFocusPositionInPreview(positionX: float, positionY: float): int
setCameraTorchOn(isOn: boolean): int
setCameraZoomFactor(factor: float): int
setChannelProfile(profile: int): int
setClientRole(role: int): int
setClientRole(role: int, options: ClientRoleOptions): int
setCloudProxy(proxyType: int): int
setColorEnhanceOptions(enabled: boolean, options: ColorEnhanceOptions): int
setColorEnhanceOptions(enabled: boolean, options: ColorEnhanceOptions, sourceType: Constants.MediaSourceType): int
setDefaultAudioRoutetoSpeakerphone(defaultToSpeaker: boolean): int
setDualStreamMode(mode: Constants.SimulcastStreamMode): int
setDualStreamMode(mode: Constants.SimulcastStreamMode, streamConfig: SimulcastStreamConfig): int
setEarMonitoringAudioFrameParameters(sampleRate: int, channel: int, mode: int, samplesPerCall: int): int
setEffectPosition(soundId: int, pos: int): int
setEffectsVolume(volume: double): int
setEnableSpeakerphone(enabled: boolean): int
setExtensionProperty(provider: String, extension: String, key: String, value: String): int
setExtensionProviderProperty(provider: String, key: String, value: String): int
setExternalAudioSink(enabled: boolean, sampleRate: int, channels: int): int
setExternalAudioSource(enabled: boolean, sampleRate: int, channels: int): int
setExternalAudioSource(enabled: boolean, sampleRate: int, channels: int, localPlayback: boolean, publish: boolean): int
setExternalMediaProjection(mediaProjection: MediaProjection): int
setExternalRemoteEglContext(eglContext: Object): int
setExternalVideoSource(enable: boolean, useTexture: boolean, sourceType: Constants.ExternalVideoSourceType): int
setFaceShapeAreaOptions(options: FaceShapeAreaOptions, sourceType: Constants.MediaSourceType): int
setFaceShapeAreaOptions(options: FaceShapeAreaOptions): int
setFaceShapeBeautyOptions(enabled: boolean, options: FaceShapeBeautyOptions, sourceType: Constants.MediaSourceType): int
setFaceShapeBeautyOptions(enabled: boolean, options: FaceShapeBeautyOptions): int
setFilterEffectOptions(enabled: boolean, options: FilterEffectOptions, sourceType: Constants.MediaSourceType): int
setFilterEffectOptions(enabled: boolean, options: FilterEffectOptions): int
setHeadphoneEQParameters(lowGain: int, highGain: int): int
setHeadphoneEQPreset(preset: int): int
setInEarMonitoringVolume(volume: int): int
setLocalAccessPoint(config: LocalAccessPointConfiguration): int
setLocalRenderMode(renderMode: int): int
setLocalRenderMode(renderMode: int, mirrorMode: int): int
setLocalRenderTargetFps(sourceType: Constants.VideoSourceType, targetFps: int): int
setLocalVideoMirrorMode(mode: int): int
setLocalVoiceEqualization(bandFrequency: Constants.AUDIO_EQUALIZATION_BAND_FREQUENCY, bandGain: int): int
setLocalVoiceFormant(formantRatio: double): int
setLocalVoicePitch(pitch: double): int
setLocalVoiceReverb(reverbKey: Constants.AUDIO_REVERB_TYPE, value: int): int
setLogFile(filePath: String): int
setLogFileSize(fileSizeInKBytes: long): int
setLogFilter(filter: int): int
setLogLevel(level: int): int
setLowlightEnhanceOptions(enabled: boolean, options: LowLightEnhanceOptions): int
setLowlightEnhanceOptions(enabled: boolean, options: LowLightEnhanceOptions, sourceType: Constants.MediaSourceType): int
setMixedAudioFrameParameters(sampleRate: int, channel: int, samplesPerCall: int): int
setParameters(parameters: String): int
setPlaybackAudioFrameBeforeMixingParameters(sampleRate: int, channel: int): int
setPlaybackAudioFrameBeforeMixingParameters(sampleRate: int, channel: int, samplesPerCall: int): int
setPlaybackAudioFrameParameters(sampleRate: int, channel: int, mode: int, samplesPerCall: int): int
setRecordingAudioFrameParameters(sampleRate: int, channel: int, mode: int, samplesPerCall: int): int
setRemoteDefaultVideoStreamType(streamType: Constants.VideoStreamType): int
setRemoteDefaultVideoStreamType(streamType: int): int
setRemoteRenderMode(uid: int, renderMode: int): int
setRemoteRenderTargetFps(targetFps: int): int
setRemoteSubscribeFallbackOption(option: Constants.StreamFallbackOptions): int
setRemoteSubscribeFallbackOption(option: int): int
setRemoteUserSpatialAudioParams(uid: int, params: SpatialAudioParams): int
setRemoteVideoStreamType(uid: int, streamType: Constants.VideoStreamType): int
setRemoteVideoStreamType(uid: int, streamType: int): int
setRemoteVideoSubscriptionOptions(uid: int, options: VideoSubscriptionOptions): int
setRemoteVoicePosition(uid: int, pan: double, gain: double): int
setRouteInCommunicationMode(route: int): int
setScreenCaptureScenario(screenScenario: Constants.ScreenScenarioType): int
setSubscribeAudioAllowlist(uidList: int[]): int
setSubscribeAudioBlocklist(uidList: int[]): int
setSubscribeVideoAllowlist(uidList: int[]): int
setSubscribeVideoBlocklist(uidList: int[]): int
setVideoDenoiserOptions(enabled: boolean, options: VideoDenoiserOptions): int
setVideoDenoiserOptions(enabled: boolean, options: VideoDenoiserOptions, sourceType: Constants.MediaSourceType): int
setVideoEncoderConfiguration(config: VideoEncoderConfiguration): int
setVideoScenario(scenarioType: Constants.VideoScenario): int
setVoiceBeautifierParameters(preset: int, param1: int, param2: int): int
setVoiceBeautifierPreset(preset: int): int
setVoiceConversionPreset(preset: int): int
setVolumeOfEffect(soundId: int, volume: double): int
setupLocalVideo(local: VideoCanvas): int
setupRemoteVideo(remote: VideoCanvas): int
startAudioMixing(filePath: String, loopback: boolean, cycle: int): int
startAudioMixing(filePath: String, loopback: boolean, cycle: int, startPos: int): int
startAudioRecording(filePath: String, quality: int): int
startAudioRecording(config: AudioRecordingConfiguration): int
startCameraCapture(sourceType: Constants.VideoSourceType, config: CameraCapturerConfiguration): int
startEchoTest(config: EchoTestConfiguration): int
startLastmileProbeTest(config: LastmileProbeConfig): int
startLocalAudioMixer(config: LocalAudioMixerConfiguration): int
startLocalVideoTranscoder(config: LocalTranscoderConfiguration): int
startMediaRenderingTracing(): int
startOrUpdateChannelMediaRelay(channelMediaRelayConfiguration: ChannelMediaRelayConfiguration): int
startPlaybackDeviceTest(audioFileName: String): int
startPreview(): int
startPreview(sourceType: Constants.VideoSourceType): int
startRecordingDeviceTest(indicationInterval: int): int
startRhythmPlayer(sound1: String, sound2: String, config: AgoraRhythmPlayerConfig): int
startRtmpStreamWithTranscoding(url: String, transcoding: LiveTranscoding): int
startRtmpStreamWithoutTranscoding(url: String): int
startScreenCapture(screenCaptureParameters: ScreenCaptureParameters): int
stopAllEffects(): int
stopAudioMixing(): int
stopAudioRecording(): int
stopCameraCapture(sourceType: Constants.VideoSourceType): int
stopChannelMediaRelay(): int
stopEchoTest(): int
stopEffect(soundId: int): int
stopLastmileProbeTest(): int
stopLocalAudioMixer(): int
stopLocalVideoTranscoder(): int
stopPlaybackDeviceTest(): int
stopPreview(): int
stopPreview(sourceType: Constants.VideoSourceType): int
stopRecordingDeviceTest(): int
stopRhythmPlayer(): int
stopRtmpStream(url: String): int
stopScreenCapture(): int
switchCamera(): int
switchCamera(cameraId: String): int
takeSnapshot(uid: int, filePath: String): int
takeSnapshot(uid: int, config: SnapshotConfig): int
unRegisterAudioSpectrumObserver(observer: IAudioSpectrumObserver): int
unloadEffect(soundId: int): int
unregisterMediaMetadataObserver(observer: IMetadataObserver, type: int): int
updateChannelMediaOptions(options: ChannelMediaOptions): int
updateLocalAudioMixerConfiguration(config: LocalAudioMixerConfiguration): int
updateLocalTranscoderConfiguration(config: LocalTranscoderConfiguration): int
updatePreloadChannelToken(token: String): int
updateRtmpTranscoding(transcoding: LiveTranscoding): int
updateScreenCaptureParameters(screenCaptureParameters: ScreenCaptureParameters): int

方法明细:256 / 256(参数、返回值、错误码)

方法参数返回值错误
addExtensionproviderName: Stringvoid错误码索引
addHandlerhandler: IRtcEngineEventHandlervoid错误码索引
addVideoWatermarkwatermark: AgoraImageint错误码索引
adjustAudioMixingPlayoutVolumevolume: intint错误码索引
adjustAudioMixingPublishVolumevolume: intint错误码索引
adjustAudioMixingVolumevolume: intint错误码索引
adjustCustomAudioPlayoutVolumetrackId: int, volume: intint错误码索引
adjustCustomAudioPublishVolumetrackId: int, volume: intint错误码索引
adjustPlaybackSignalVolumevolume: intint错误码索引
adjustRecordingSignalVolumevolume: intint错误码索引
adjustUserPlaybackSignalVolumeuid: int, volume: intint错误码索引
clearVideoWatermarks—int错误码索引
complaincallId: String, description: Stringint错误码索引
configRhythmPlayerconfig: AgoraRhythmPlayerConfigint错误码索引
createcontext: Context, appId: String, handler: IRtcEngineEventHandlerRtcEngine错误码索引
createCustomAudioTracktrackType: Constants.AudioTrackType, config: AudioTrackConfigint错误码索引
createCustomVideoTrack—int错误码索引
createDataStreamreliable: boolean, ordered: booleanint错误码索引
createMediaPlayer—IMediaPlayer错误码索引
createMediaRecorderinfo: RecorderStreamInfoAgoraMediaRecorder错误码索引
createVideoEffectObjectbundlePath: String, sourceType: Constants.MediaSourceTypeIVideoEffectObject错误码索引
destroy—void错误码索引
destroyCustomAudioTracktrackId: intint错误码索引
destroyCustomVideoTrackvideo_track_id: intint错误码索引
destroyMediaRecordermediaRecorder: AgoraMediaRecordervoid错误码索引
destroyVideoEffectObjectvideoEffectObject: IVideoEffectObjectint错误码索引
disableAudio—int错误码索引
disableAudioSpectrumMonitor—int错误码索引
disableVideo—int错误码索引
enableAudio—int错误码索引
enableAudioSpectrumMonitorintervalInMS: intint错误码索引
enableAudioVolumeIndicationinterval: int, smooth: int, reportVad: booleanint错误码索引
enableContentInspectenabled: boolean, config: ContentInspectConfigint错误码索引
enableCustomAudioLocalPlaybacktrackId: int, enabled: booleanint错误码索引
enableDualStreamModeenabled: booleanint错误码索引
enableEncryptionenabled: boolean, config: EncryptionConfigint错误码索引
enableExtensionprovider: String, extension: String, enable: booleanint错误码索引
enableFaceDetectionenabled: booleanint错误码索引
enableInEarMonitoringenabled: booleanint错误码索引
enableInstantMediaRendering—int错误码索引
enableLocalAudioenabled: booleanint错误码索引
enableLocalVideoenabled: booleanint错误码索引
enableSoundPositionIndicationenabled: booleanint错误码索引
enableSpatialAudioenabled: booleanint错误码索引
enableVideo—int错误码索引
enableVideoImageSourceenabled: boolean, options: ImageTrackOptionsint错误码索引
enableVirtualBackgroundenabled: boolean, backgroundSource: VirtualBackgroundSource, segproperty: SegmentationPropertyint错误码索引
enableVoiceAITunerenabled: boolean, type: Constants.VOICE_AI_TUNER_TYPEint错误码索引
enableWebSdkInteroperabilityenabled: booleanint错误码索引
getAudioDeviceInfo—DeviceInfo错误码索引
getAudioEffectManager—IAudioEffectManager错误码索引
getAudioMixingCurrentPosition—int错误码索引
getAudioMixingDuration—int错误码索引
getAudioMixingPlayoutVolume—int错误码索引
getAudioMixingPublishVolume—int错误码索引
getAudioTrackCount—int错误码索引
getCallId—String错误码索引
getCameraMaxZoomFactor—float错误码索引
getConnectionState—int错误码索引
getCurrentMonotonicTimeInMs—long错误码索引
getEffectCurrentPositionsoundId: intint错误码索引
getEffectDurationfilePath: Stringint错误码索引
getEffectsVolume—double错误码索引
getErrorDescriptionerror: intString错误码索引
getExtensionPropertyprovider: String, extension: String, key: StringString错误码索引
getFaceShapeAreaOptionsshapeArea: int, sourceType: Constants.MediaSourceTypeFaceShapeAreaOptions错误码索引
getFaceShapeBeautyOptionssourceType: Constants.MediaSourceTypeFaceShapeBeautyOptions错误码索引
getNativeHandle—long错误码索引
getNetworkType—int错误码索引
getNtpWallTimeInMs—long错误码索引
getSdkVersion—String错误码索引
getUserInfoByUiduid: int, userInfo: UserInfoint错误码索引
getUserInfoByUserAccountuserAccount: String, userInfo: UserInfoint错误码索引
getVolumeOfEffectsoundId: intint错误码索引
isCameraAutoFocusFaceModeSupported—boolean错误码索引
isCameraExposurePositionSupported—boolean错误码索引
isCameraExposureSupported—boolean错误码索引
isCameraFaceDetectSupported—boolean错误码索引
isCameraFocusSupported—boolean错误码索引
isCameraTorchSupported—boolean错误码索引
isCameraZoomSupported—boolean错误码索引
isFeatureAvailableOnDevicetype: intboolean错误码索引
isSpeakerphoneEnabled—boolean错误码索引
isTextureEncodeSupported—boolean错误码索引
joinChanneltoken: String, channelId: String, optionalInfo: String, uid: intint错误码索引
joinChannelWithUserAccounttoken: String, channelName: String, userAccount: Stringint错误码索引
leaveChannel—int错误码索引
muteAllRemoteAudioStreamsmuted: booleanint错误码索引
muteAllRemoteVideoStreamsmuted: booleanint错误码索引
muteLocalAudioStreammuted: booleanint错误码索引
muteLocalVideoStreammuted: booleanint错误码索引
muteRecordingSignalmuted: booleanint错误码索引
muteRemoteAudioStreamuid: int, muted: booleanint错误码索引
muteRemoteVideoStreamuid: int, muted: booleanint错误码索引
pauseAllChannelMediaRelay—int错误码索引
pauseAllEffects—int错误码索引
pauseAudioMixing—int错误码索引
pauseEffectsoundId: intint错误码索引
playAllEffectsloopCount: int, pitch: double, pan: double, gain: double, publish: booleanint错误码索引
playEffectsoundId: int, filePath: String, loopCount: int, pitch: double, pan: double, gain: double, publish: booleanint错误码索引
preloadChanneltoken: String, channelName: String, optionalUid: intint错误码索引
preloadChannelWithUserAccounttoken: String, channelName: String, userAccount: Stringint错误码索引
preloadEffectsoundId: int, filePath: String, startPos: intint错误码索引
pullPlaybackAudioFramedata: byte[], lengthInByte: intint错误码索引
pushExternalAudioFramedata: byte[], timestamp: long, sampleRate: int, channels: int, bytesPerSample: Constants.BytesPerSample, trackId: intint错误码索引
pushExternalVideoFrameframe: VideoFrameboolean错误码索引
pushExternalVideoFrameByIdframe: VideoFrame, videoTrackId: intint错误码索引
queryCameraFocalLengthCapability—AgoraFocalLengthInfo[]错误码索引
queryCodecCapability—CodecCapInfo[]错误码索引
queryDeviceScore—int错误码索引
queryScreenCaptureCapability—int错误码索引
ratecallId: String, rating: int, description: Stringint错误码索引
registerAudioEncodedFrameObserverconfig: AudioEncodedFrameObserverConfig, observer: IAudioEncodedFrameObserverint错误码索引
registerAudioFrameObserverobserver: IAudioFrameObserverint错误码索引
registerAudioSpectrumObserverobserver: IAudioSpectrumObserverint错误码索引
registerExtensionprovider: String, extension: String, sourceType: Constants.MediaSourceTypeint错误码索引
registerLocalUserAccountappId: String, userAccount: Stringint错误码索引
registerMediaMetadataObserverobserver: IMetadataObserver, type: intint错误码索引
registerVideoEncodedFrameObserverreceiver: IVideoEncodedFrameObserverint错误码索引
registerVideoFrameObserverobserver: IVideoFrameObserverint错误码索引
removeHandlerhandler: IRtcEngineEventHandlervoid错误码索引
removeVideoWatermarkid: Stringint错误码索引
renewTokentoken: Stringint错误码索引
resumeAllChannelMediaRelay—int错误码索引
resumeAllEffects—int错误码索引
resumeAudioMixing—int错误码索引
resumeEffectsoundId: intint错误码索引
selectAudioTrackaudioIndex: intint错误码索引
sendCustomReportMessageid: String, category: String, event: String, label: String, value: intint错误码索引
sendStreamMessagestreamId: int, message: byte[]int错误码索引
setAINSModeenabled: boolean, mode: intint错误码索引
setAVSyncSourcechannelId: String, uid: intint错误码索引
setAdvancedAudioOptionsoptions: AdvancedAudioOptionsint错误码索引
setAudioEffectParameterspreset: int, param1: int, param2: intint错误码索引
setAudioEffectPresetpreset: intint错误码索引
setAudioMixingDualMonoModemode: Constants.AudioMixingDualMonoModeint错误码索引
setAudioMixingPitchpitch: intint错误码索引
setAudioMixingPlaybackSpeedspeed: intint错误码索引
setAudioMixingPositionpos: intint错误码索引
setAudioProfileprofile: int, scenario: intint错误码索引
setAudioScenarioscenario: intint错误码索引
setBeautyEffectOptionsenabled: boolean, options: BeautyOptionsint错误码索引
setCameraAutoFocusFaceModeEnabledenabled: booleanint错误码索引
setCameraCapturerConfigurationconfig: CameraCapturerConfigurationint错误码索引
setCameraExposureFactorfactor: intint错误码索引
setCameraExposurePositionpositionXinView: float, positionYinView: floatint错误码索引
setCameraFocusPositionInPreviewpositionX: float, positionY: floatint错误码索引
setCameraTorchOnisOn: booleanint错误码索引
setCameraZoomFactorfactor: floatint错误码索引
setChannelProfileprofile: intint错误码索引
setClientRolerole: intint错误码索引
setCloudProxyproxyType: intint错误码索引
setColorEnhanceOptionsenabled: boolean, options: ColorEnhanceOptionsint错误码索引
setDefaultAudioRoutetoSpeakerphonedefaultToSpeaker: booleanint错误码索引
setDualStreamModemode: Constants.SimulcastStreamModeint错误码索引
setEarMonitoringAudioFrameParameterssampleRate: int, channel: int, mode: int, samplesPerCall: intint错误码索引
setEffectPositionsoundId: int, pos: intint错误码索引
setEffectsVolumevolume: doubleint错误码索引
setEnableSpeakerphoneenabled: booleanint错误码索引
setExtensionPropertyprovider: String, extension: String, key: String, value: Stringint错误码索引
setExtensionProviderPropertyprovider: String, key: String, value: Stringint错误码索引
setExternalAudioSinkenabled: boolean, sampleRate: int, channels: intint错误码索引
setExternalAudioSourceenabled: boolean, sampleRate: int, channels: intint错误码索引
setExternalMediaProjectionmediaProjection: MediaProjectionint错误码索引
setExternalRemoteEglContexteglContext: Objectint错误码索引
setExternalVideoSourceenable: boolean, useTexture: boolean, sourceType: Constants.ExternalVideoSourceTypeint错误码索引
setFaceShapeAreaOptionsoptions: FaceShapeAreaOptions, sourceType: Constants.MediaSourceTypeint错误码索引
setFaceShapeBeautyOptionsenabled: boolean, options: FaceShapeBeautyOptions, sourceType: Constants.MediaSourceTypeint错误码索引
setFilterEffectOptionsenabled: boolean, options: FilterEffectOptions, sourceType: Constants.MediaSourceTypeint错误码索引
setHeadphoneEQParameterslowGain: int, highGain: intint错误码索引
setHeadphoneEQPresetpreset: intint错误码索引
setInEarMonitoringVolumevolume: intint错误码索引
setLocalAccessPointconfig: LocalAccessPointConfigurationint错误码索引
setLocalRenderModerenderMode: intint错误码索引
setLocalRenderTargetFpssourceType: Constants.VideoSourceType, targetFps: intint错误码索引
setLocalVideoMirrorModemode: intint错误码索引
setLocalVoiceEqualizationbandFrequency: Constants.AUDIO_EQUALIZATION_BAND_FREQUENCY, bandGain: intint错误码索引
setLocalVoiceFormantformantRatio: doubleint错误码索引
setLocalVoicePitchpitch: doubleint错误码索引
setLocalVoiceReverbreverbKey: Constants.AUDIO_REVERB_TYPE, value: intint错误码索引
setLogFilefilePath: Stringint错误码索引
setLogFileSizefileSizeInKBytes: longint错误码索引
setLogFilterfilter: intint错误码索引
setLogLevellevel: intint错误码索引
setLowlightEnhanceOptionsenabled: boolean, options: LowLightEnhanceOptionsint错误码索引
setMixedAudioFrameParameterssampleRate: int, channel: int, samplesPerCall: intint错误码索引
setParametersparameters: Stringint错误码索引
setPlaybackAudioFrameBeforeMixingParameterssampleRate: int, channel: intint错误码索引
setPlaybackAudioFrameParameterssampleRate: int, channel: int, mode: int, samplesPerCall: intint错误码索引
setRecordingAudioFrameParameterssampleRate: int, channel: int, mode: int, samplesPerCall: intint错误码索引
setRemoteDefaultVideoStreamTypestreamType: Constants.VideoStreamTypeint错误码索引
setRemoteRenderModeuid: int, renderMode: intint错误码索引
setRemoteRenderTargetFpstargetFps: intint错误码索引
setRemoteSubscribeFallbackOptionoption: Constants.StreamFallbackOptionsint错误码索引
setRemoteUserSpatialAudioParamsuid: int, params: SpatialAudioParamsint错误码索引
setRemoteVideoStreamTypeuid: int, streamType: Constants.VideoStreamTypeint错误码索引
setRemoteVideoSubscriptionOptionsuid: int, options: VideoSubscriptionOptionsint错误码索引
setRemoteVoicePositionuid: int, pan: double, gain: doubleint错误码索引
setRouteInCommunicationModeroute: intint错误码索引
setScreenCaptureScenarioscreenScenario: Constants.ScreenScenarioTypeint错误码索引
setSubscribeAudioAllowlistuidList: int[]int错误码索引
setSubscribeAudioBlocklistuidList: int[]int错误码索引
setSubscribeVideoAllowlistuidList: int[]int错误码索引
setSubscribeVideoBlocklistuidList: int[]int错误码索引
setVideoDenoiserOptionsenabled: boolean, options: VideoDenoiserOptionsint错误码索引
setVideoEncoderConfigurationconfig: VideoEncoderConfigurationint错误码索引
setVideoScenarioscenarioType: Constants.VideoScenarioint错误码索引
setVoiceBeautifierParameterspreset: int, param1: int, param2: intint错误码索引
setVoiceBeautifierPresetpreset: intint错误码索引
setVoiceConversionPresetpreset: intint错误码索引
setVolumeOfEffectsoundId: int, volume: doubleint错误码索引
setupLocalVideolocal: VideoCanvasint错误码索引
setupRemoteVideoremote: VideoCanvasint错误码索引
startAudioMixingfilePath: String, loopback: boolean, cycle: intint错误码索引
startAudioRecordingfilePath: String, quality: intint错误码索引
startCameraCapturesourceType: Constants.VideoSourceType, config: CameraCapturerConfigurationint错误码索引
startEchoTestconfig: EchoTestConfigurationint错误码索引
startLastmileProbeTestconfig: LastmileProbeConfigint错误码索引
startLocalAudioMixerconfig: LocalAudioMixerConfigurationint错误码索引
startLocalVideoTranscoderconfig: LocalTranscoderConfigurationint错误码索引
startMediaRenderingTracing—int错误码索引
startOrUpdateChannelMediaRelaychannelMediaRelayConfiguration: ChannelMediaRelayConfigurationint错误码索引
startPlaybackDeviceTestaudioFileName: Stringint错误码索引
startPreview—int错误码索引
startRecordingDeviceTestindicationInterval: intint错误码索引
startRhythmPlayersound1: String, sound2: String, config: AgoraRhythmPlayerConfigint错误码索引
startRtmpStreamWithTranscodingurl: String, transcoding: LiveTranscodingint错误码索引
startRtmpStreamWithoutTranscodingurl: Stringint错误码索引
startScreenCapturescreenCaptureParameters: ScreenCaptureParametersint错误码索引
stopAllEffects—int错误码索引
stopAudioMixing—int错误码索引
stopAudioRecording—int错误码索引
stopCameraCapturesourceType: Constants.VideoSourceTypeint错误码索引
stopChannelMediaRelay—int错误码索引
stopEchoTest—int错误码索引
stopEffectsoundId: intint错误码索引
stopLastmileProbeTest—int错误码索引
stopLocalAudioMixer—int错误码索引
stopLocalVideoTranscoder—int错误码索引
stopPlaybackDeviceTest—int错误码索引
stopPreview—int错误码索引
stopRecordingDeviceTest—int错误码索引
stopRhythmPlayer—int错误码索引
stopRtmpStreamurl: Stringint错误码索引
stopScreenCapture—int错误码索引
switchCamera—int错误码索引
takeSnapshotuid: int, filePath: Stringint错误码索引
unRegisterAudioSpectrumObserverobserver: IAudioSpectrumObserverint错误码索引
unloadEffectsoundId: intint错误码索引
unregisterMediaMetadataObserverobserver: IMetadataObserver, type: intint错误码索引
updateChannelMediaOptionsoptions: ChannelMediaOptionsint错误码索引
updateLocalAudioMixerConfigurationconfig: LocalAudioMixerConfigurationint错误码索引
updateLocalTranscoderConfigurationconfig: LocalTranscoderConfigurationint错误码索引
updatePreloadChannelTokentoken: Stringint错误码索引
updateRtmpTranscodingtranscoding: LiveTranscodingint错误码索引
updateScreenCaptureParametersscreenCaptureParameters: ScreenCaptureParametersint错误码索引
RtcEngineConfig 0 方法 / 14 属性
属性类型只读
mEventHandlerIRtcEngineEventHandler否
mContextContext否
mAppIdString否
mAreaCodeint否
mChannelProfileint否
mLicenseString否
mAudioScenarioint否
mAutoRegisterAgoraExtensionsboolean否
mExtensionListList否
mExtensionObserverIMediaExtensionObserver否
mLogConfigLogConfig否
mThreadPriorityInteger否
mNativeLibPathString否
mDomainLimitboolean否
RtcEngineEx 48 方法 / 0 属性
typescript
addVideoWatermarkEx(watermarkUrl: String, options: WatermarkOptions, connection: RtcConnection): int
addVideoWatermarkEx(config: WatermarkConfig, connection: RtcConnection): int
adjustUserPlaybackSignalVolumeEx(uid: int, volume: int, connection: RtcConnection): int
clearVideoWatermarkEx(connection: RtcConnection): int
createDataStreamEx(reliable: boolean, ordered: boolean, connection: RtcConnection): int
createDataStreamEx(config: DataStreamConfig, connection: RtcConnection): int
enableAudioVolumeIndicationEx(interval: int, smooth: int, reportVad: boolean, connection: RtcConnection): int
enableContentInspectEx(enabled: boolean, config: ContentInspectConfig, connection: RtcConnection): int
enableDualStreamModeEx(enabled: boolean, streamConfig: SimulcastStreamConfig, connection: RtcConnection): int
enableEncryptionEx(enabled: boolean, config: EncryptionConfig, connection: RtcConnection): int
getCallIdEx(connection: RtcConnection): String
getConnectionStateEx(connection: RtcConnection): int
getUserInfoByUidEx(uid: int, userInfo: UserInfo, connection: RtcConnection): int
getUserInfoByUserAccountEx(userAccount: String, userInfo: UserInfo, connection: RtcConnection): int
joinChannelEx(token: String, connection: RtcConnection, options: ChannelMediaOptions, eventHandler: IRtcEngineEventHandler): int
joinChannelWithUserAccountEx(token: String, channelId: String, userAccount: String, options: ChannelMediaOptions, eventHandler: IRtcEngineEventHandler): int
leaveChannelEx(connection: RtcConnection): int
leaveChannelEx(connection: RtcConnection, options: LeaveChannelOptions): int
muteAllRemoteAudioStreamsEx(muted: boolean, connection: RtcConnection): int
muteAllRemoteVideoStreamsEx(muted: boolean, connection: RtcConnection): int
muteLocalAudioStreamEx(muted: boolean, connection: RtcConnection): int
muteLocalVideoStreamEx(muted: boolean, connection: RtcConnection): int
muteRemoteAudioStreamEx(uid: int, muted: boolean, connection: RtcConnection): int
muteRemoteVideoStreamEx(uid: int, muted: boolean, connection: RtcConnection): int
pauseAllChannelMediaRelayEx(connection: RtcConnection): int
playEffectEx(connection: RtcConnection, soundId: int, filePath: String, loopCount: int, pitch: double, pan: double, gain: double, publish: boolean, startPos: int): int
playEffectEx(connection: RtcConnection, soundId: int, filePath: String, loopCount: int, pitch: double, pan: double, gain: double, publish: boolean): int
preloadEffectEx(connection: RtcConnection, soundId: int, filePath: String, startPos: int): int
preloadEffectEx(connection: RtcConnection, soundId: int, filePath: String): int
removeVideoWatermarkEx(id: String, connection: RtcConnection): int
resumeAllChannelMediaRelayEx(connection: RtcConnection): int
sendCustomReportMessageEx(id: String, category: String, event: String, label: String, value: int, connection: RtcConnection): int
sendStreamMessageEx(streamId: int, message: byte[], connection: RtcConnection): int
setDualStreamModeEx(mode: Constants.SimulcastStreamMode, streamConfig: SimulcastStreamConfig, connection: RtcConnection): int
setRemoteRenderModeEx(uid: int, renderMode: int, mirrorMode: int, connection: RtcConnection): int
setRemoteVideoStreamTypeEx(uid: int, streamType: Constants.VideoStreamType, connection: RtcConnection): int
setRemoteVideoStreamTypeEx(uid: int, streamType: int, connection: RtcConnection): int
setRemoteVideoSubscriptionOptionsEx(uid: int, options: VideoSubscriptionOptions, rtcConnection: RtcConnection): int
setRemoteVoicePositionEx(uid: int, pan: double, gain: double, connection: RtcConnection): int
setSubscribeAudioAllowlistEx(uidList: int[], connection: RtcConnection): int
setSubscribeAudioBlocklistEx(uidList: int[], connection: RtcConnection): int
setSubscribeVideoAllowlistEx(uidList: int[], connection: RtcConnection): int
setSubscribeVideoBlocklistEx(uidList: int[], connection: RtcConnection): int
setVideoEncoderConfigurationEx(config: VideoEncoderConfiguration, connection: RtcConnection): int
setupRemoteVideoEx(remote: VideoCanvas, connection: RtcConnection): int
startMediaRenderingTracingEx(connection: RtcConnection): int
startOrUpdateChannelMediaRelayEx(channelMediaRelayConfiguration: ChannelMediaRelayConfiguration, connection: RtcConnection): int
startRtmpStreamWithTranscodingEx(url: String, transcoding: LiveTranscoding, connection: RtcConnection): int
startRtmpStreamWithoutTranscodingEx(url: String, connection: RtcConnection): int
stopChannelMediaRelayEx(connection: RtcConnection): int
stopRtmpStreamEx(url: String, connection: RtcConnection): int
takeSnapshotEx(connection: RtcConnection, uid: int, filePath: String): int
takeSnapshotEx(connection: RtcConnection, uid: int, config: SnapshotConfig): int
updateChannelMediaOptionsEx(options: ChannelMediaOptions, connection: RtcConnection): int
updateRtmpTranscodingEx(transcoding: LiveTranscoding, connection: RtcConnection): int

方法明细:48 / 48(参数、返回值、错误码)

方法参数返回值错误
addVideoWatermarkExwatermarkUrl: String, options: WatermarkOptions, connection: RtcConnectionint错误码索引
adjustUserPlaybackSignalVolumeExuid: int, volume: int, connection: RtcConnectionint错误码索引
clearVideoWatermarkExconnection: RtcConnectionint错误码索引
createDataStreamExreliable: boolean, ordered: boolean, connection: RtcConnectionint错误码索引
enableAudioVolumeIndicationExinterval: int, smooth: int, reportVad: boolean, connection: RtcConnectionint错误码索引
enableContentInspectExenabled: boolean, config: ContentInspectConfig, connection: RtcConnectionint错误码索引
enableDualStreamModeExenabled: boolean, streamConfig: SimulcastStreamConfig, connection: RtcConnectionint错误码索引
enableEncryptionExenabled: boolean, config: EncryptionConfig, connection: RtcConnectionint错误码索引
getCallIdExconnection: RtcConnectionString错误码索引
getConnectionStateExconnection: RtcConnectionint错误码索引
getUserInfoByUidExuid: int, userInfo: UserInfo, connection: RtcConnectionint错误码索引
getUserInfoByUserAccountExuserAccount: String, userInfo: UserInfo, connection: RtcConnectionint错误码索引
joinChannelExtoken: String, connection: RtcConnection, options: ChannelMediaOptions, eventHandler: IRtcEngineEventHandlerint错误码索引
joinChannelWithUserAccountExtoken: String, channelId: String, userAccount: String, options: ChannelMediaOptions, eventHandler: IRtcEngineEventHandlerint错误码索引
leaveChannelExconnection: RtcConnectionint错误码索引
muteAllRemoteAudioStreamsExmuted: boolean, connection: RtcConnectionint错误码索引
muteAllRemoteVideoStreamsExmuted: boolean, connection: RtcConnectionint错误码索引
muteLocalAudioStreamExmuted: boolean, connection: RtcConnectionint错误码索引
muteLocalVideoStreamExmuted: boolean, connection: RtcConnectionint错误码索引
muteRemoteAudioStreamExuid: int, muted: boolean, connection: RtcConnectionint错误码索引
muteRemoteVideoStreamExuid: int, muted: boolean, connection: RtcConnectionint错误码索引
pauseAllChannelMediaRelayExconnection: RtcConnectionint错误码索引
playEffectExconnection: RtcConnection, soundId: int, filePath: String, loopCount: int, pitch: double, pan: double, gain: double, publish: boolean, startPos: intint错误码索引
preloadEffectExconnection: RtcConnection, soundId: int, filePath: String, startPos: intint错误码索引
removeVideoWatermarkExid: String, connection: RtcConnectionint错误码索引
resumeAllChannelMediaRelayExconnection: RtcConnectionint错误码索引
sendCustomReportMessageExid: String, category: String, event: String, label: String, value: int, connection: RtcConnectionint错误码索引
sendStreamMessageExstreamId: int, message: byte[], connection: RtcConnectionint错误码索引
setDualStreamModeExmode: Constants.SimulcastStreamMode, streamConfig: SimulcastStreamConfig, connection: RtcConnectionint错误码索引
setRemoteRenderModeExuid: int, renderMode: int, mirrorMode: int, connection: RtcConnectionint错误码索引
setRemoteVideoStreamTypeExuid: int, streamType: Constants.VideoStreamType, connection: RtcConnectionint错误码索引
setRemoteVideoSubscriptionOptionsExuid: int, options: VideoSubscriptionOptions, rtcConnection: RtcConnectionint错误码索引
setRemoteVoicePositionExuid: int, pan: double, gain: double, connection: RtcConnectionint错误码索引
setSubscribeAudioAllowlistExuidList: int[], connection: RtcConnectionint错误码索引
setSubscribeAudioBlocklistExuidList: int[], connection: RtcConnectionint错误码索引
setSubscribeVideoAllowlistExuidList: int[], connection: RtcConnectionint错误码索引
setSubscribeVideoBlocklistExuidList: int[], connection: RtcConnectionint错误码索引
setVideoEncoderConfigurationExconfig: VideoEncoderConfiguration, connection: RtcConnectionint错误码索引
setupRemoteVideoExremote: VideoCanvas, connection: RtcConnectionint错误码索引
startMediaRenderingTracingExconnection: RtcConnectionint错误码索引
startOrUpdateChannelMediaRelayExchannelMediaRelayConfiguration: ChannelMediaRelayConfiguration, connection: RtcConnectionint错误码索引
startRtmpStreamWithTranscodingExurl: String, transcoding: LiveTranscoding, connection: RtcConnectionint错误码索引
startRtmpStreamWithoutTranscodingExurl: String, connection: RtcConnectionint错误码索引
stopChannelMediaRelayExconnection: RtcConnectionint错误码索引
stopRtmpStreamExurl: String, connection: RtcConnectionint错误码索引
takeSnapshotExconnection: RtcConnection, uid: int, filePath: Stringint错误码索引
updateChannelMediaOptionsExoptions: ChannelMediaOptions, connection: RtcConnectionint错误码索引
updateRtmpTranscodingExtranscoding: LiveTranscoding, connection: RtcConnectionint错误码索引
RtcStats 0 方法 / 24 属性
属性类型只读
totalDurationint否
txBytesint否
rxBytesint否
txKBitRateint否
txAudioBytesint否
rxAudioBytesint否
txVideoBytesint否
rxVideoBytesint否
rxKBitRateint否
txAudioKBitRateint否
rxAudioKBitRateint否
txVideoKBitRateint否
rxVideoKBitRateint否
lastmileDelayint否
cpuTotalUsagedouble否
gatewayRttint否
cpuAppUsagedouble否
usersint否
connectTimeMsint否
txPacketLossRateint否
rxPacketLossRateint否
memoryAppUsageRatiodouble否
memoryTotalUsageRatiodouble否
memoryAppUsageInKbytesint否
Rte 6 方法 / 0 属性
typescript
Rte(initialConfig: InitialConfig): unknown
destroy(): void
getConfigs(config: Config): void
getFromBridge(): Rte
initMediaEngine(callBack: AsyncCallback): void
setConfigs(config: Config): void

方法明细:6 / 6(参数、返回值、错误码)

方法参数返回值错误
RteinitialConfig: InitialConfigunknown错误码索引
destroy—void错误码索引
getConfigsconfig: Configvoid错误码索引
getFromBridge—Rte错误码索引
initMediaEnginecallBack: AsyncCallbackvoid错误码索引
setConfigsconfig: Configvoid错误码索引
RteException 1 方法 / 1 属性
typescript
errorCode(): Constants.ErrorCode

方法明细:1 / 1(参数、返回值、错误码)

方法参数返回值错误
errorCode—Constants.ErrorCode错误码索引
属性类型只读
mErrorCodeint否
ScreenCaptureParameters 0 方法 / 4 属性
属性类型只读
captureAudioboolean否
videoCaptureParametersVideoCaptureParameters否
captureVideoboolean否
audioCaptureParametersAudioCaptureParameters否
SegmentationProperty 0 方法 / 8 属性
属性类型只读
SEG_MODEL_AIint否
SEG_MODEL_GREENint否
SCREEN_COLOR_AUTOint否
SCREEN_COLOR_GREENint否
SCREEN_COLOR_BLUEint否
modelTypeint否
greenCapacityfloat否
screenColorTypeint否
SimulcastStreamConfig 0 方法 / 3 属性
属性类型只读
dimensionsVideoEncoderConfiguration.VideoDimensions否
bitrateint否
framerateint否
SnapshotConfig 0 方法 / 2 属性
属性类型只读
filePathString否
positionConstants.VideoModulePosition否
SpatialAudioParams 0 方法 / 8 属性
属性类型只读
speaker_azimuthDouble否
speaker_elevationDouble否
speaker_distanceDouble否
speaker_orientationInteger否
enable_blurBoolean否
enable_air_absorbBoolean否
speaker_attenuationDouble否
enable_dopplerBoolean否
SpatialAudioZone 0 方法 / 9 属性
属性类型只读
zoneSetIdint否
positionfloat[]否
forwardfloat[]否
rightfloat[]否
upfloat[]否
forwardLengthfloat否
rightLengthfloat否
upLengthfloat否
audioAttenuationfloat否
SrcInfo 0 方法 / 2 属性
属性类型只读
bitrateInKbpsint否
nameString否
TranscodingUser 0 方法 / 8 属性
属性类型只读
uidint否
xint否
yint否
widthint否
heightint否
zOrderint否
alphafloat否
audioChannelint否
TranscodingVideoStream 0 方法 / 11 属性
属性类型只读
remoteUserUidint否
sourceTypeConstants.VideoSourceType否
imageUrlString否
mediaPlayerIdint否
xint否
yint否
widthint否
heightint否
zOrderint否
alphadouble否
mirrorboolean否
UplinkNetworkInfo 0 方法 / 1 属性
属性类型只读
video_encoder_target_bitrate_bpsint否
UserAudioSpectrumInfo 0 方法 / 2 属性
属性类型只读
uidint否
audioSpectrumInfoAudioSpectrumInfo否
UserInfo 0 方法 / 2 属性
属性类型只读
uidint否
userAccountString否
VideoCanvas 0 方法 / 19 属性
属性类型只读
uidint否
subviewUidint否
RENDER_MODE_HIDDENint否
RENDER_MODE_FITint否
RENDER_MODE_ADAPTIVEint否
VIEW_SETUP_MODE_REPLACEint否
VIEW_SETUP_MODE_ADDint否
VIEW_SETUP_MODE_REMOVEint否
viewView否
surfaceTextureSurfaceTexture否
renderModeint否
mirrorModeint否
setupModeint否
sourceTypeint否
mediaPlayerIdint否
rectRect否
enableAlphaMaskboolean否
backgroundColorint否
positionConstants.VideoModulePosition否
VideoCaptureParameters 0 方法 / 5 属性
属性类型只读
bitrateint否
framerateint否
widthint否
heightint否
contentHintint否
VideoDenoiserOptions 0 方法 / 6 属性
属性类型只读
VIDEO_DENOISER_AUTOint否
VIDEO_DENOISER_MANUALint否
VIDEO_DENOISER_LEVEL_HIGH_QUALITYint否
VIDEO_DENOISER_LEVEL_FASTint否
denoiserModeint否
denoiserLevelint否
VideoDimensions 0 方法 / 2 属性
属性类型只读
widthint否
heightint否
VideoEncoderConfiguration 0 方法 / 10 属性
属性类型只读
dimensionsVideoDimensions否
frameRateint否
minFrameRateint否
bitrateint否
minBitrateint否
orientationModeORIENTATION_MODE否
degradationPreferDEGRADATION_PREFERENCE否
mirrorModeMIRROR_MODE_TYPE否
advanceOptionsAdvanceOptions否
codecTypeVIDEO_CODEC_TYPE否
VideoFrame 0 方法 / 6 属性
属性类型只读
typeunknown否
bufferunknown否
TextureBufferunknown否
rotationunknown否
timestampNsunknown否
colorSpaceunknown否
VideoLayout 0 方法 / 8 属性
属性类型只读
channelIdString否
uidint否
strUidString否
videoStateint否
xint否
yint否
widthint否
heightint否
VideoLayoutInfo 0 方法 / 4 属性
属性类型只读
widthint否
heightint否
layoutCountint否
layoutListVideoLayout[]否
VideoRenderingTracingInfo 0 方法 / 7 属性
属性类型只读
elapsedTimeint否
start2JoinChannelint否
join2JoinSuccessint否
joinSuccess2RemoteJoinedint否
remoteJoined2SetViewint否
remoteJoined2UnmuteVideoint否
remoteJoined2PacketReceivedint否
VideoSubscriptionOptions 0 方法 / 2 属性
属性类型只读
streamTypeREMOTE_VIDEO_STREAM_TYPE否
encodedFrameOnlyBoolean否
VirtualBackgroundSource 0 方法 / 4 属性
属性类型只读
backgroundSourceTypeint否
colorint否
sourceString否
blurDegreeint否
WatermarkBuffer 5 方法 / 8 属性
typescript
getBuffer(): ByteBuffer
getFormat(): int
getHeight(): int
getId(): String
getWidth(): int

方法明细:5 / 5(参数、返回值、错误码)

方法参数返回值错误
getBuffer—ByteBuffer错误码索引
getFormat—int错误码索引
getHeight—int错误码索引
getId—String错误码索引
getWidth—int错误码索引
属性类型只读
WATERMARK_BUFFER_FORMAT_I420int否
WATERMARK_BUFFER_FORMAT_BGRAint否
WATERMARK_BUFFER_FORMAT_NV21int否
WATERMARK_BUFFER_FORMAT_RGBAint否
bufferByteBuffer否
widthint否
heightint否
formatint否
WatermarkConfig 3 方法 / 7 属性
typescript
getImageUrl(): String
getOptions(): WatermarkOptions
getType(): int

方法明细:3 / 3(参数、返回值、错误码)

方法参数返回值错误
getImageUrl—String错误码索引
getOptions—WatermarkOptions错误码索引
getType—int错误码索引
属性类型只读
WATERMARK_TYPE_IMAGEint否
WATERMARK_TYPE_BUFFERint否
idString否
typeint否
bufferWatermarkBuffer否
imageUrlString否
optionsWatermarkOptions否
WatermarkOptions 4 方法 / 4 属性
typescript
getPositionInLandscapeMode(): int[]
getPositionInPortraitMode(): int[]
getzOrder(): int
isVisibleInPreview(): boolean

方法明细:4 / 4(参数、返回值、错误码)

方法参数返回值错误
getPositionInLandscapeMode—int[]错误码索引
getPositionInPortraitMode—int[]错误码索引
getzOrder—int错误码索引
isVisibleInPreview—boolean错误码索引
属性类型只读
visibleInPreviewboolean否
positionInLandscapeModeRectangle否
positionInPortraitModeRectangle否
zOrderint否

枚举

枚举成员数示例值
AbrFallbackLayer9DISABLED = 0
AbrSubscriptionLayer8HIGH = 0
AUDIO_EQUALIZATION_BAND_FREQUENCY10AUDIO_EQUALIZATION_BAND_31 = 0
AUDIO_REVERB_TYPE5AUDIO_REVERB_DRY_LEVEL = 0
AudioCodecProfileType3LC_AAC = 0
AudioDualMonoMode4AUDIO_DUAL_MONO_STEREO = 0
AudioMixingDualMonoMode4AUDIO_MIXING_DUAL_MONO_AUTO = 0
AudioProcessingChannelsEnum2AGORA_AUDIO_MONO_PROCESSING = 1
AudioProfile5SPEECH_STANDARD = 1
AudioSampleRateType3TYPE_32000 = 32000
AudioSourceType8AUDIO_SOURCE_MICROPHONE = 0
AudioTrackType2AUDIO_TRACK_MIXABLE = 0
CAMERA_DIRECTION3CAMERA_REAR = 0
CAMERA_FOCAL_LENGTH_TYPE4CAMERA_FOCAL_LENGTH_DEFAULT = 0
COMPRESSION_PREFERENCE3PREFER_COMPRESSION_AUTO = -1
DEGRADATION_PREFERENCE6MAINTAIN_AUTO = -1
ENCODING_PREFERENCE3PREFER_AUTO = -1
EncryptionMode9AES_128_XTS = 1
ErrorCode6OK = 0
ExternalVideoSourceType2VIDEO_FRAME = 0
FRAME_RATE7FRAME_RATE_FPS_1 = 1
LogLevel5LOG_LEVEL_NONE = 0
MEDIA_TRACE_EVENT2MEDIA_TRACE_EVENT_VIDEO_RENDERED = 0
MediaPlayerEvent18PLAYER_EVENT_UNKNOWN = -1
MediaPlayerMetadataType2PLAYER_METADATA_TYPE_UNKNOWN = 0
MediaPlayerPreloadEvent3PLAYER_PRELOAD_EVENT_BEGIN = 0
MediaPlayerReason18PLAYER_REASON_NONE = 0
MediaPlayerState10PLAYER_STATE_UNKNOWN = -1
MediaSourceType15AUDIO_PLAYOUT_SOURCE = 0
MediaStreamType4STREAM_TYPE_UNKNOWN = 0
MultipathMode1MULTIPATH_MODE_DUPLICATE = 0
MultipathType4MULTIPATH_TYPE_LAN = 0
MusicPlayMode3MUSIC_PLAY_MODE_ORIGINAL = 0
ORIENTATION_MODE3ORIENTATION_MODE_ADAPTIVE = 0
PlayerEvent21SEEK_BEGIN = 0
PlayerState8IDLE = 0
RenewTokenErrorCode7RENEW_TOKEN_SUCCESS = 0
ScreenScenarioType3SCREEN_SCENARIO_DOCUMENT = 1
SimulcastStreamMode3AUTO_SIMULCAST_STREAM = -1
StreamFallbackOptions9STREAM_FALLBACK_OPTION_DISABLED = 0
VIDEO_CODEC_TYPE7VIDEO_CODEC_NONE = 0
VIDEO_EFFECT_ACTION2SAVE = 1
VIDEO_EFFECT_NODE_ID4BEAUTY = 1
VideoCodecProfileType3BASELINE = 66
VideoCodecType2H264 = 1
VideoMirrorMode3AUTO = 0
VideoModulePosition4VIDEO_MODULE_POSITION_POST_CAPTURER = 1
VideoRenderMode2HIDDEN = 0
VideoScenario4APPLICATION_SCENARIO_GENERAL = 0
VideoSourceType15VIDEO_SOURCE_CAMERA_PRIMARY = 0
VideoStreamType8VIDEO_STREAM_HIGH = 0
VOICE_AI_TUNER_TYPE10VOICE_AI_TUNER_MATURE_MALE = 0
AbrFallbackLayer 9 个成员
成员值
DISABLED0
LOW1
AUDIO_ONLY2
LAYER13
LAYER24
LAYER35
LAYER46
LAYER57
LAYER68
AbrSubscriptionLayer 8 个成员
成员值
HIGH0
LOW1
LAYER12
LAYER23
LAYER34
LAYER45
LAYER56
LAYER67
AUDIO_EQUALIZATION_BAND_FREQUENCY 10 个成员
成员值
AUDIO_EQUALIZATION_BAND_310
AUDIO_EQUALIZATION_BAND_621
AUDIO_EQUALIZATION_BAND_1252
AUDIO_EQUALIZATION_BAND_2503
AUDIO_EQUALIZATION_BAND_5004
AUDIO_EQUALIZATION_BAND_1K5
AUDIO_EQUALIZATION_BAND_2K6
AUDIO_EQUALIZATION_BAND_4K7
AUDIO_EQUALIZATION_BAND_8K8
AUDIO_EQUALIZATION_BAND_16K9
AUDIO_REVERB_TYPE 5 个成员
成员值
AUDIO_REVERB_DRY_LEVEL0
AUDIO_REVERB_WET_LEVEL1
AUDIO_REVERB_ROOM_SIZE2
AUDIO_REVERB_WET_DELAY3
AUDIO_REVERB_STRENGTH4
AudioCodecProfileType 3 个成员
成员值
LC_AAC0
HE_AAC1
HE_AAC_V22
AudioDualMonoMode 4 个成员
成员值
AUDIO_DUAL_MONO_STEREO0
AUDIO_DUAL_MONO_L1
AUDIO_DUAL_MONO_R2
AUDIO_DUAL_MONO_MIX3
AudioMixingDualMonoMode 4 个成员
成员值
AUDIO_MIXING_DUAL_MONO_AUTO0
AUDIO_MIXING_DUAL_MONO_L1
AUDIO_MIXING_DUAL_MONO_R2
AUDIO_MIXING_DUAL_MONO_MIX3
AudioProcessingChannelsEnum 2 个成员
成员值
AGORA_AUDIO_MONO_PROCESSING1
AGORA_AUDIO_STEREO_PROCESSING2
AudioProfile 5 个成员
成员值
SPEECH_STANDARD1
MUSIC_STANDARD2
MUSIC_STANDARD_STEREO3
MUSIC_HIGH_QUALITY4
MUSIC_HIGH_QUALITY_STEREO5
AudioSampleRateType 3 个成员
成员值
TYPE_3200032000
TYPE_4410044100
TYPE_4800048000
AudioSourceType 8 个成员
成员值
AUDIO_SOURCE_MICROPHONE0
AUDIO_SOURCE_CUSTOM1
AUDIO_SOURCE_MEDIA_PLAYER2
AUDIO_SOURCE_LOOPBACK_RECORDING3
AUDIO_SOURCE_MIXED_STREAM4
AUDIO_SOURCE_REMOTE_USER5
AUDIO_SOURCE_REMOTE_CHANNEL6
AUDIO_SOURCE_UNKNOWN100
AudioTrackType 2 个成员
成员值
AUDIO_TRACK_MIXABLE0
AUDIO_TRACK_DIRECT1
CAMERA_DIRECTION 3 个成员
成员值
CAMERA_REAR0
CAMERA_FRONT1
CAMERA_EXTRAL2
CAMERA_FOCAL_LENGTH_TYPE 4 个成员
成员值
CAMERA_FOCAL_LENGTH_DEFAULT0
CAMERA_FOCAL_LENGTH_WIDE_ANGLE1
CAMERA_FOCAL_LENGTH_ULTRA_WIDE2
CAMERA_FOCAL_LENGTH_TELEPHOTO3
COMPRESSION_PREFERENCE 3 个成员
成员值
PREFER_COMPRESSION_AUTO-1
PREFER_LOW_LATENCY0
PREFER_QUALITY1
DEGRADATION_PREFERENCE 6 个成员
成员值
MAINTAIN_AUTO-1
MAINTAIN_QUALITY0
MAINTAIN_FRAMERATE1
MAINTAIN_BALANCED2
MAINTAIN_RESOLUTION3
DISABLED100
ENCODING_PREFERENCE 3 个成员
成员值
PREFER_AUTO-1
PREFER_SOFTWARE0
PREFER_HARDWARE1
EncryptionMode 9 个成员
成员值
AES_128_XTS1
AES_128_ECB2
AES_256_XTS3
SM4_128_ECB4
AES_128_GCM5
AES_256_GCM6
AES_128_GCM27
AES_256_GCM28
MODE_END9
ErrorCode 6 个成员
成员值
OK0
INVALID_ARGUMENT2
INVALID_OPERATION3
NETWORK_ERROR4
AUTHENTICATION_FAILED5
STREAM_NOT_FOUND6
ExternalVideoSourceType 2 个成员
成员值
VIDEO_FRAME0
ENCODED_VIDEO_FRAME1
FRAME_RATE 7 个成员
成员值
FRAME_RATE_FPS_11
FRAME_RATE_FPS_77
FRAME_RATE_FPS_1010
FRAME_RATE_FPS_1515
FRAME_RATE_FPS_2424
FRAME_RATE_FPS_3030
FRAME_RATE_FPS_6060
LogLevel 5 个成员
成员值
LOG_LEVEL_NONE0
LOG_LEVEL_INFO1
LOG_LEVEL_WARN2
LOG_LEVEL_ERROR4
LOG_LEVEL_FATAL8
MEDIA_TRACE_EVENT 2 个成员
成员值
MEDIA_TRACE_EVENT_VIDEO_RENDERED0
MEDIA_TRACE_EVENT_VIDEO_DECODED1
MediaPlayerEvent 18 个成员
成员值
PLAYER_EVENT_UNKNOWN-1
PLAYER_EVENT_SEEK_BEGIN0
PLAYER_EVENT_SEEK_COMPLETE1
PLAYER_EVENT_SEEK_ERROR2
PLAYER_EVENT_AUDIO_TRACK_CHANGED5
PLAYER_EVENT_BUFFER_LOW6
PLAYER_EVENT_BUFFER_RECOVER7
PLAYER_EVENT_FREEZE_START8
PLAYER_EVENT_FREEZE_STOP9
PLAYER_EVENT_SWITCH_BEGIN10
PLAYER_EVENT_SWITCH_COMPLETE11
PLAYER_EVENT_SWITCH_ERROR12
PLAYER_EVENT_FIRST_DISPLAYED13
PLAYER_EVENT_REACH_CACHE_FILE_MAX_COUNT14
PLAYER_EVENT_REACH_CACHE_FILE_MAX_SIZE15
PLAYER_EVENT_TRY_OPEN_START16
PLAYER_EVENT_TRY_OPEN_SUCCEED17
PLAYER_EVENT_TRY_OPEN_FAILED18
MediaPlayerMetadataType 2 个成员
成员值
PLAYER_METADATA_TYPE_UNKNOWN0
PLAYER_METADATA_TYPE_SEI1
MediaPlayerPreloadEvent 3 个成员
成员值
PLAYER_PRELOAD_EVENT_BEGIN0
PLAYER_PRELOAD_EVENT_COMPLETE1
PLAYER_PRELOAD_EVENT_ERROR2
MediaPlayerReason 18 个成员
成员值
PLAYER_REASON_NONE0
PLAYER_REASON_INVALID_ARGUMENTS-1
PLAYER_REASON_INTERNAL-2
PLAYER_REASON_NO_RESOURCE-3
PLAYER_REASON_INVALID_MEDIA_SOURCE-4
PLAYER_REASON_UNKNOWN_STREAM_TYPE-5
PLAYER_REASON_OBJ_NOT_INITIALIZED-6
PLAYER_REASON_CODEC_NOT_SUPPORTED-7
PLAYER_REASON_VIDEO_RENDER_FAILED-8
PLAYER_REASON_INVALID_STATE-9
PLAYER_REASON_URL_NOT_FOUND-10
PLAYER_REASON_INVALID_CONNECTION_STATE-11
PLAY_REASON_SRC_BUFFER_UNDERFLOW-12
PLAYER_REASON_INTERRUPTED-13
PLAYER_REASON_NOT_SUPPORTED-14
PLAYER_REASON_TOKEN_EXPIRED-15
PLAYER_REASON_IP_EXPIRED-16
PLAYER_REASON_UNKNOWN-17
MediaPlayerState 10 个成员
成员值
PLAYER_STATE_UNKNOWN-1
PLAYER_STATE_IDLE0
PLAYER_STATE_OPENING1
PLAYER_STATE_OPEN_COMPLETED2
PLAYER_STATE_PLAYING3
PLAYER_STATE_PAUSED4
PLAYER_STATE_PLAYBACK_COMPLETED5
PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED6
PLAYER_STATE_STOPPED7
PLAYER_STATE_FAILED100
MediaSourceType 15 个成员
成员值
AUDIO_PLAYOUT_SOURCE0
AUDIO_RECORDING_SOURCE1
PRIMARY_CAMERA_SOURCE2
SECONDARY_CAMERA_SOURCE3
PRIMARY_SCREEN_SOURCE4
SECONDARY_SCREEN_SOURCE5
CUSTOM_VIDEO_SOURCE6
MEDIA_PLAYER_SOURCE7
RTC_IMAGE_PNG_SOURCE8
RTC_IMAGE_JPEG_SOURCE9
RTC_IMAGE_GIF_SOURCE10
REMOTE_VIDEO_SOURCE11
TRANSCODED_VIDEO_SOURCE12
SPEECH_DRIVEN_VIDEO_SOURCE13
UNKNOWN_MEDIA_SOURCE100
MediaStreamType 4 个成员
成员值
STREAM_TYPE_UNKNOWN0
STREAM_TYPE_VIDEO1
STREAM_TYPE_AUDIO2
STREAM_TYPE_SUBTITLE3
MultipathMode 1 个成员
成员值
MULTIPATH_MODE_DUPLICATE0
MultipathType 4 个成员
成员值
MULTIPATH_TYPE_LAN0
MULTIPATH_TYPE_WIFI1
MULTIPATH_TYPE_MOBILE2
MULTIPATH_TYPE_UNKNOWN99
MusicPlayMode 3 个成员
成员值
MUSIC_PLAY_MODE_ORIGINAL0
MUSIC_PLAY_MODE_ACCOMPANY1
MUSIC_PLAY_MODE_LEAD_SING2
ORIENTATION_MODE 3 个成员
成员值
ORIENTATION_MODE_ADAPTIVE0
ORIENTATION_MODE_FIXED_LANDSCAPE1
ORIENTATION_MODE_FIXED_PORTRAIT2
PlayerEvent 21 个成员
成员值
SEEK_BEGIN0
SEEK_COMPLETE1
SEEK_ERROR2
BUFFER_LOW3
BUFFER_RECOVER4
FREEZE_START5
FREEZE_STOP6
ONE_LOOP_PLAYBACK_COMPLETED7
AUTHENTICATION_WILL_EXPIRE8
ABR_FALLBACK_TO_AUDIO_ONLY_LAYER9
ABR_RECOVER_FROM_AUDIO_ONLY_LAYER10
SWITCH_BEGIN11
SWITCH_COMPLETE12
SWITCH_ERROR13
FIRST_DISPLAYED14
REACH_CACHE_FILE_MAX_COUNT15
REACH_CACHE_FILE_MAX_SIZE16
TRY_OPEN_START17
TRY_OPEN_SUCCEED18
TRY_OPEN_FAILED19
AUDIO_TRACK_CHANGED20
PlayerState 8 个成员
成员值
IDLE0
OPENING1
OPEN_COMPLETED2
PLAYING3
PAUSED4
PLAYBACK_COMPLETED5
STOPPED6
FAILED7
RenewTokenErrorCode 7 个成员
成员值
RENEW_TOKEN_SUCCESS0
RENEW_TOKEN_FAILURE1
RENEW_TOKEN_TOKEN_EXPIRED2
RENEW_TOKEN_INVALID_TOKEN3
RENEW_TOKEN_INVALID_CHANNEL_NAME4
RENEW_TOKEN_INCONSISTENT_APPID5
RENEW_TOKEN_CANCELED_BY_NEW_REQUEST6
ScreenScenarioType 3 个成员
成员值
SCREEN_SCENARIO_DOCUMENT1
SCREEN_SCENARIO_GAMING2
SCREEN_SCENARIO_VIDEO3
SimulcastStreamMode 3 个成员
成员值
AUTO_SIMULCAST_STREAM-1
DISABLE_SIMULCAST_STREAM0
ENABLE_SIMULCAST_STREAM1
StreamFallbackOptions 9 个成员
成员值
STREAM_FALLBACK_OPTION_DISABLED0
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW1
STREAM_FALLBACK_OPTION_AUDIO_ONLY2
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_13
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_24
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_35
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_46
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_57
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_68
VIDEO_CODEC_TYPE 7 个成员
成员值
VIDEO_CODEC_NONE0
VIDEO_CODEC_VP81
VIDEO_CODEC_H2642
VIDEO_CODEC_H2653
VIDEO_CODEC_GENERIC6
VIDEO_CODEC_VP913
VIDEO_CODEC_GENERIC_JPEG20
VIDEO_EFFECT_ACTION 2 个成员
成员值
SAVE1
RESET2
VIDEO_EFFECT_NODE_ID 4 个成员
成员值
BEAUTY1
STYLE_MAKEUP2
FILTER4
STICKER8
VideoCodecProfileType 3 个成员
成员值
BASELINE66
MAIN77
HIGH100
VideoCodecType 2 个成员
成员值
H2641
H2652
VideoMirrorMode 3 个成员
成员值
AUTO0
ENABLED1
DISABLED2
VideoModulePosition 4 个成员
成员值
VIDEO_MODULE_POSITION_POST_CAPTURER1
VIDEO_MODULE_POSITION_PRE_RENDERER2
VIDEO_MODULE_POSITION_PRE_ENCODER4
VIDEO_MODULE_POSITION_POST_CAPTURER_ORIGIN8
VideoRenderMode 2 个成员
成员值
HIDDEN0
FIT1
VideoScenario 4 个成员
成员值
APPLICATION_SCENARIO_GENERAL0
APPLICATION_SCENARIO_MEETINGnull
APPLICATION_SCENARIO_1V12
APPLICATION_SCENARIO_LIVESHOW3
VideoSourceType 15 个成员
成员值
VIDEO_SOURCE_CAMERA_PRIMARY0
VIDEO_SOURCE_CAMERA_SECONDARY1
VIDEO_SOURCE_SCREEN_PRIMARY2
VIDEO_SOURCE_SCREEN_SECONDARY3
VIDEO_SOURCE_CUSTOM4
VIDEO_SOURCE_MEDIA_PLAYER5
VIDEO_SOURCE_RTC_IMAGE_PNG6
VIDEO_SOURCE_RTC_IMAGE_JPEG7
VIDEO_SOURCE_RTC_IMAGE_GIF8
VIDEO_SOURCE_REMOTE9
VIDEO_SOURCE_TRANSCODED10
VIDEO_SOURCE_CAMERA_THIRD11
VIDEO_SOURCE_CAMERA_FOURTH12
VIDEO_SOURCE_SPEECH_DRIVEN15
VIDEO_SOURCE_UNKNOWN100
VideoStreamType 8 个成员
成员值
VIDEO_STREAM_HIGH0
VIDEO_STREAM_LOW1
VIDEO_STREAM_LAYER_14
VIDEO_STREAM_LAYER_25
VIDEO_STREAM_LAYER_36
VIDEO_STREAM_LAYER_47
VIDEO_STREAM_LAYER_58
VIDEO_STREAM_LAYER_69
VOICE_AI_TUNER_TYPE 10 个成员
成员值
VOICE_AI_TUNER_MATURE_MALE0
VOICE_AI_TUNER_FRESH_MALE1
VOICE_AI_TUNER_ELEGANT_FEMALE2
VOICE_AI_TUNER_SWEET_FEMALE3
VOICE_AI_TUNER_WARM_MALE_SINGING4
VOICE_AI_TUNER_GENTLE_FEMALE_SINGING5
VOICE_AI_TUNER_HUSKY_MALE_SINGING6
VOICE_AI_TUNER_WARM_ELEGANT_FEMALE_SINGING7
VOICE_AI_TUNER_POWERFUL_MALE_SINGING8
VOICE_AI_TUNER_DREAMY_FEMALE_SINGING9

错误码常量

常量值
AUTHENTICATION_FAILED5
INVALID_ARGUMENT2
INVALID_OPERATION3
NETWORK_ERROR4
OK0
STREAM_NOT_FOUND6

已知限制

以下成员在当前版本暂不可用,调用时返回 -4(ERR_NOT_SUPPORTED)。接口定义中保留这些成员,便于跨端代码保持一致。

接口成员
CanvasCanvas
CanvasaddView
CanvasgetConfigs
CanvasremoveView
CanvassetConfigs
CanvasConfiggetVideoMirrorMode
CanvasConfiggetVideoRenderMode
CanvasConfigsetVideoMirrorMode
CanvasConfigsetVideoRenderMode
ChannelMediaRelayConfigurationremoveDestChannelInfo
ChannelMediaRelayConfigurationsetDestChannelInfo
ChannelMediaRelayConfigurationsetSrcChannelInfo
ConfiggetAppId
ConfiggetJsonParameter
ConfigsetAppId
ConfigsetJsonParameter
Errorcode
Errormessage
IAgoraMusicContentCentercreateMusicPlayer
IAgoraMusicContentCenterdestroy
IAgoraMusicContentCenterdestroyMusicPlayer
IAgoraMusicContentCentergetCaches
IAgoraMusicContentCentergetInternalSongCode
IAgoraMusicContentCentergetLyric
IAgoraMusicContentCentergetMusicCharts
IAgoraMusicContentCentergetMusicCollectionByMusicChartId
IAgoraMusicContentCentergetSongSimpleInfo
IAgoraMusicContentCenterinitialize
IAgoraMusicContentCenterisPreloaded
IAgoraMusicContentCenterpreload
IAgoraMusicContentCenterregisterEventHandler
IAgoraMusicContentCenterremoveCache
IAgoraMusicContentCenterrenewToken
IAgoraMusicContentCentersearchMusic
IAgoraMusicContentCenterunregisterEventHandler
IAgoraMusicPlayerdestroy
IAgoraMusicPlayergetPlaySrc
IAgoraMusicPlayeropen
IAgoraMusicPlayersetPlayMode
IAgoraMusicPlayerstop
IAudioFrameObservergetEarMonitoringAudioParams
IAudioFrameObservergetMixedAudioParams
IAudioFrameObservergetObservedAudioFramePosition
IAudioFrameObservergetPlaybackAudioParams
IAudioFrameObservergetRecordAudioParams
IAudioFrameObserveronEarMonitoringAudioFrame
IAudioFrameObserveronMixedAudioFrame
IAudioFrameObserveronPlaybackAudioFrame
IAudioFrameObserveronPlaybackAudioFrameBeforeMixing
IAudioFrameObserveronRecordAudioFrame
IAudioSpectrumObserveronLocalAudioSpectrum
IAudioSpectrumObserveronRemoteAudioSpectrum
IBaseSpatialAudioEngineclearRemotePositions
IBaseSpatialAudioEnginemuteAllRemoteAudioStreams
IBaseSpatialAudioEnginemuteLocalAudioStream
IBaseSpatialAudioEnginemuteRemoteAudioStream
IBaseSpatialAudioEnginesetAudioRecvRange
IBaseSpatialAudioEnginesetDistanceUnit
IBaseSpatialAudioEnginesetMaxAudioRecvCount
IBaseSpatialAudioEnginesetPlayerAttenuation
IBaseSpatialAudioEnginesetZones
IBaseSpatialAudioEngineupdatePlayerPositionInfo
IBaseSpatialAudioEngineupdateSelfPosition
ILocalSpatialAudioEnginecreate
ILocalSpatialAudioEnginedestroy
ILocalSpatialAudioEngineinitialize
ILocalSpatialAudioEngineremoveRemotePosition
ILocalSpatialAudioEnginesetRemoteAudioAttenuation
ILocalSpatialAudioEngineupdateRemotePosition
IMediaPlayerregisterAudioFrameObserver
IMediaPlayerregisterVideoFrameObserver
IMediaPlayerCustomDataProvideronReadData
IMediaPlayerCustomDataProvideronSeek
IMetadataObservergetMaxMetadataSize
IMetadataObserveronReadyToSendMetadata
IVideoEffectObjectaddOrUpdateVideoEffect
IVideoEffectObjectgetVideoEffectBoolParam
IVideoEffectObjectgetVideoEffectFloatParam
IVideoEffectObjectgetVideoEffectIntParam
IVideoEffectObjectperformVideoEffectAction
IVideoEffectObjectremoveVideoEffect
IVideoEffectObjectsetVideoEffectBoolParam
IVideoEffectObjectsetVideoEffectFloatParam
IVideoEffectObjectsetVideoEffectIntParam
IVideoEffectObjectsetVideoEffectStringParam
IVideoEncodedFrameObserveronEncodedVideoFrameReceived
IVideoFrameObservergetMirrorApplied
IVideoFrameObservergetObservedFramePosition
IVideoFrameObservergetRotationApplied
IVideoFrameObservergetVideoFormatPreference
IVideoFrameObservergetVideoFrameProcessMode
IVideoFrameObserveronCaptureVideoFrame
IVideoFrameObserveronPreEncodeVideoFrame
IVideoFrameObserveronRenderVideoFrame
LiveTranscodingaddBackgroundImage
LiveTranscodingaddUser
LiveTranscodingaddWatermark
LiveTranscodinggetAdvancedFeatures
LiveTranscodinggetBackgroundColor
LiveTranscodinggetBackgroundImageList
LiveTranscodinggetBlue
LiveTranscodinggetGreen
LiveTranscodinggetRed
LiveTranscodinggetUserCount
LiveTranscodinggetUsers
LiveTranscodinggetWatermarkList
LiveTranscodingremoveBackgroundImage
LiveTranscodingremoveUser
LiveTranscodingremoveWatermark
LiveTranscodingsetAdvancedFeatures
LiveTranscodingsetBackgroundColor
LiveTranscodingsetBlue
LiveTranscodingsetGreen
LiveTranscodingsetRed
LiveTranscodingsetUsers
PlayerPlayer
PlayergetConfigs
PlayergetInfo
PlayergetPosition
PlayergetStats
PlayermuteAudio
PlayermuteVideo
PlayeropenWithUrl
Playerpause
Playerplay
PlayerpreloadWithUrl
PlayerregisterObserver
Playerseek
PlayersetCanvas
PlayersetConfigs
Playerstop
PlayerswitchWithUrl
PlayerunregisterObserver
PlayerConfiggetAbrFallbackLayer
PlayerConfiggetAbrSubscriptionLayer
PlayerConfiggetAutoPlay
PlayerConfiggetLoopCount
PlayerConfiggetPlaybackSpeed
PlayerConfiggetPlayoutVolume
PlayerConfigsetAbrFallbackLayer
PlayerConfigsetAbrSubscriptionLayer
PlayerConfigsetAutoPlay
PlayerConfigsetLoopCount
PlayerConfigsetPlaybackSpeed
PlayerConfigsetPlayoutVolume
PlayerInfoabrSubscriptionLayer
PlayerInfoaudioBitsPerSample
PlayerInfoaudioChannels
PlayerInfoaudioSampleRate
PlayerInfocurrentUrl
PlayerInfoduration
PlayerInfohasAudio
PlayerInfohasVideo
PlayerInfoisAudioMuted
PlayerInfoisVideoMuted
PlayerInfostate
PlayerInfostreamCount
PlayerInfovideoHeight
PlayerInfovideoWidth
RtcEngineaddExtension
RtcEngineadjustCustomAudioPlayoutVolume
RtcEngineadjustCustomAudioPublishVolume
RtcEnginecreateCustomAudioTrack
RtcEnginecreateCustomVideoTrack
RtcEnginecreateVideoEffectObject
RtcEnginedestroyCustomAudioTrack
RtcEnginedestroyCustomVideoTrack
RtcEnginedestroyVideoEffectObject
RtcEngineenableContentInspect
RtcEngineenableCustomAudioLocalPlayback
RtcEngineenableExtension
RtcEngineenableSpatialAudio
RtcEnginegetAudioEffectManager
RtcEnginegetExtensionProperty
RtcEnginegetNativeHandle
RtcEngineisTextureEncodeSupported
RtcEnginepauseAllChannelMediaRelay
RtcEnginepullPlaybackAudioFrame
RtcEnginepushExternalAudioFrame
RtcEnginepushExternalVideoFrame
RtcEnginepushExternalVideoFrameById
RtcEngineregisterAudioEncodedFrameObserver
RtcEngineregisterAudioFrameObserver
RtcEngineregisterAudioSpectrumObserver
RtcEngineregisterExtension
RtcEngineregisterMediaMetadataObserver
RtcEngineregisterVideoEncodedFrameObserver
RtcEngineregisterVideoFrameObserver
RtcEngineresumeAllChannelMediaRelay
RtcEnginesetEarMonitoringAudioFrameParameters
RtcEnginesetExtensionProperty
RtcEnginesetExtensionProviderProperty
RtcEnginesetExternalAudioSink
RtcEnginesetExternalAudioSource
RtcEnginesetExternalMediaProjection
RtcEnginesetExternalRemoteEglContext
RtcEnginesetExternalVideoSource
RtcEnginesetLocalAccessPoint
RtcEnginesetMixedAudioFrameParameters
RtcEnginesetPlaybackAudioFrameBeforeMixingParameters
RtcEnginesetPlaybackAudioFrameParameters
RtcEnginesetRecordingAudioFrameParameters
RtcEnginestartEchoTest
RtcEnginestartLastmileProbeTest
RtcEnginestartOrUpdateChannelMediaRelay
RtcEnginestartPlaybackDeviceTest
RtcEnginestartRecordingDeviceTest
RtcEnginestartRtmpStreamWithTranscoding
RtcEnginestartRtmpStreamWithoutTranscoding
RtcEnginestopChannelMediaRelay
RtcEnginestopEchoTest
RtcEnginestopLastmileProbeTest
RtcEnginestopPlaybackDeviceTest
RtcEnginestopRecordingDeviceTest
RtcEnginestopRtmpStream
RtcEnginetakeSnapshot
RtcEngineunRegisterAudioSpectrumObserver
RtcEngineunregisterMediaMetadataObserver
RtcEngineupdateRtmpTranscoding
RtcEngineExenableContentInspectEx
RtcEngineExpauseAllChannelMediaRelayEx
RtcEngineExresumeAllChannelMediaRelayEx
RtcEngineExstartOrUpdateChannelMediaRelayEx
RtcEngineExstartRtmpStreamWithTranscodingEx
RtcEngineExstartRtmpStreamWithoutTranscodingEx
RtcEngineExstopChannelMediaRelayEx
RtcEngineExstopRtmpStreamEx
RtcEngineExtakeSnapshotEx
RtcEngineExupdateRtmpTranscodingEx
RteRte
Rtedestroy
RtegetConfigs
RtegetFromBridge
RteinitMediaEngine
RtesetConfigs
RteExceptionerrorCode
WatermarkBuffergetBuffer
WatermarkBuffergetFormat
WatermarkBuffergetHeight
WatermarkBuffergetId
WatermarkBuffergetWidth
WatermarkConfiggetImageUrl
WatermarkConfiggetOptions
WatermarkConfiggetType
WatermarkOptionsgetPositionInLandscapeMode
WatermarkOptionsgetPositionInPortraitMode
WatermarkOptionsgetzOrder
WatermarkOptionsisVisibleInPreview

本页由文档构建流水线生成 · 2026-10-31 01:24:02 UTC · 文档中心 v1.1.0.

内容依据公开 API 定义.

ni-meet 是自建 RTC PaaS,媒体面基于 LiveKit(Apache-2.0),并与声网 API 兼容。