Methods
addCameraProcessors
- addCameraProcessors(processors: IBaseProcessor[]): number
Parameters
processors: IBaseProcessor[]
Returns number
addMicrophoneProcessors
- addMicrophoneProcessors(processors: IBaseProcessor[]): number
Parameters
processors: IBaseProcessor[]
Returns number
addPreviewCameraProcessors
- addPreviewCameraProcessors(processors: IBaseProcessor[]): number
Parameters
processors: IBaseProcessor[]
Returns number
addPreviewMicrophoneProcessors
- addPreviewMicrophoneProcessors(processors: IBaseProcessor[]): number
Parameters
processors: IBaseProcessor[]
Returns number
adjustLoopbackSignalVolume
enableLocalAudio
- enableLocalAudio(enable: boolean): number
enableLocalVideo
- enableLocalVideo(enable: boolean): number
enableLoopbackRecording
- enableLoopbackRecording(enable: boolean, device?: string, connType?: AGRtcConnectionType): number
Parameters
enable: boolean
Optional device: string
Returns number
enablePreviewLocalAudio
- enablePreviewLocalAudio(enable: boolean): number
enablePreviewLocalVideo
- enablePreviewLocalVideo(enable: boolean): number
getCurrentFrameData
- getCurrentFrameData(channelName: string, streamUuid: string, isLocal: boolean): ImageData
Parameters
channelName: string
streamUuid: string
isLocal: boolean
Returns ImageData
hasScreenSharePermission
- hasScreenSharePermission(): boolean
isScreenDeviceEnumerateSupported
- isScreenDeviceEnumerateSupported(): boolean
onAutoPlayFailed
- onAutoPlayFailed(cb: () => void): number
onLocalAudioTrackStateChanged
onLocalAudioVolume
- onLocalAudioVolume(cb: (volume: number) => void): number
Parameters
cb: (volume: number) => void
Returns number
onLocalLoopbackDeviceStateChanged
onLocalPlaybackListChanged
onLocalRecordingDeviceListChanged
onLocalScreenShareTrackStateChanged
onLocalVideoTrackStateChanged
removeAudioRawDataObserver
removeCameraProcessors
- removeCameraProcessors(): number
removeMicrophoneProcessors
- removeMicrophoneProcessors(): number
removePreviewCameraProcessors
- removePreviewCameraProcessors(): number
removePreviewMicrophoneProcessors
- removePreviewMicrophoneProcessors(): number
setAudioPlaybackDevice
- setAudioPlaybackDevice(deviceId: string): number
setAudioRecordingDevice
- setAudioRecordingDevice(deviceId: string): number
setBeautyEffectOptions
- setBeautyEffectOptions(enable: boolean, options: AGBeautyEffect): number
setVideoCameraDevice
- setVideoCameraDevice(deviceId: string): number
startAudioPlaybackDeviceTest
- startAudioPlaybackDeviceTest(url: string): number
startAudioRecordingDeviceTest
- startAudioRecordingDeviceTest(indicateInterval: number): number
startScreenCapture
- startScreenCapture(params?: { audioDeviceName?: string; id?: string; type?: AGScreenShareType; withAudio?: boolean }): number
Parameters
Optional params: { audioDeviceName?: string; id?: string; type?: AGScreenShareType; withAudio?: boolean }
Optional audioDeviceName?: string
Optional id?: string
Optional withAudio?: boolean
Returns number
stopAudioPlaybackDeviceTest
- stopAudioPlaybackDeviceTest(): number
stopAudioRecordingDeviceTest
- stopAudioRecordingDeviceTest(): number
stopScreenCapture
- stopScreenCapture(): number
takeSnapshot
- takeSnapshot(channel: string, streamUuid: number, filePath: string): Promise<void | AGSnapshotInfo>
Parameters
channel: string
streamUuid: number
filePath: string