Class ZegoExpressEngineImpl
Constructors
constructor
-
Methods
addPublishCdnUrl
-
Parameters
-
streamID: string
-
targetURL: string
callEmit
- callEmit(...args: any[]): void
-
Parameters
Returns void
callExperimentalAPI
- callExperimentalAPI(param: string): string
-
Parameters
Returns string
createAudioEffectPlayer
-
createMediaPlayer
-
createRangeAudio
-
destroyAudioEffectPlayer
-
Parameters
Returns void
destroyMediaPlayer
-
Parameters
Returns void
destroyRangeAudio
-
Parameters
Returns void
emit
- emit(eventName: string, ...args: any[]): void
-
Parameters
-
eventName: string
-
Rest ...args: any[]
Returns void
enableAEC
- enableAEC(enable: boolean): void
-
Parameters
Returns void
enableAGC
- enableAGC(enable: boolean): void
-
Parameters
Returns void
enableANS
- enableANS(enable: boolean): void
-
Parameters
Returns void
enableAudioCaptureDevice
- enableAudioCaptureDevice(enable: boolean): void
-
Parameters
Returns void
enableAudioMixing
- enableAudioMixing(enable: boolean): void
-
Parameters
Returns void
enableCamera
-
Parameters
Returns void
enableCustomAudioCaptureProcessing
-
Parameters
Returns void
enableCustomAudioIO
-
Parameters
Returns void
enableCustomAudioPlaybackProcessing
-
Parameters
Returns void
enableCustomAudioRemoteProcessing
-
Parameters
Returns void
enableCustomVideoProcessing
-
Parameters
Returns void
enableDebugAssistant
- enableDebugAssistant(enable: boolean): void
-
Parameters
Returns void
enableEffectsBeauty
- enableEffectsBeauty(enable: boolean): void
-
Parameters
Returns void
enableHardwareDecoder
- enableHardwareDecoder(enable: boolean): void
-
Parameters
Returns void
enableHardwareEncoder
- enableHardwareEncoder(enable: boolean): void
-
Parameters
Returns void
enableHeadphoneAEC
- enableHeadphoneAEC(enable: boolean): void
-
Parameters
Returns void
enableHeadphoneMonitor
- enableHeadphoneMonitor(enable: boolean): void
-
Parameters
Returns void
enablePublishDirectToCDN
-
Parameters
Returns void
enableTrafficControl
- enableTrafficControl(enable: boolean, property: number, channel?: ZegoPublishChannel): void
-
Parameters
-
enable: boolean
-
property: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
enableTransientANS
- enableTransientANS(enable: boolean): void
-
Parameters
Returns void
enableVirtualStereo
- enableVirtualStereo(enable: boolean, angle: number): void
-
Parameters
-
enable: boolean
-
angle: number
Returns void
getAudioConfig
-
Parameters
getAudioDeviceList
-
Parameters
getAudioDeviceVolume
-
Parameters
Returns number
getAudioRouteType
-
getCameraMaxZoomFactor
-
Parameters
Returns number
getCaptureVolume
- getCaptureVolume(): number
-
Returns number
getDefaultAudioDeviceID
-
Parameters
Returns string
getNetworkTimeInfo
-
getVideoConfig
-
Parameters
isAudioDeviceMuted
-
Parameters
Returns boolean
isCameraFocusSupported
-
Parameters
Returns boolean
isMicrophoneMuted
- isMicrophoneMuted(): boolean
-
Returns boolean
isSpeakerMuted
- isSpeakerMuted(): boolean
-
Returns boolean
isVideoDecoderSupported
-
Parameters
Returns number
isVideoEncoderSupported
-
Parameters
Returns number
loginRoom
-
Parameters
Returns void
logoutRoom
- logoutRoom(roomID?: string): void
-
Parameters
Returns void
muteAllPlayStreamAudio
- muteAllPlayStreamAudio(mute: boolean): void
-
Parameters
Returns void
muteAudioDevice
-
Parameters
-
-
deviceID: string
-
mute: boolean
Returns void
muteLocalAudioMixing
- muteLocalAudioMixing(mute: boolean): void
-
Parameters
Returns void
muteMicrophone
- muteMicrophone(mute: boolean): void
-
Parameters
Returns void
mutePlayStreamAudio
- mutePlayStreamAudio(streamID: string, mute: boolean): void
-
Parameters
-
streamID: string
-
mute: boolean
Returns void
mutePlayStreamVideo
- mutePlayStreamVideo(streamID: string, mute: boolean): void
-
Parameters
-
streamID: string
-
mute: boolean
Returns void
mutePublishStreamAudio
-
Parameters
Returns void
mutePublishStreamVideo
-
Parameters
Returns void
muteSpeaker
- muteSpeaker(mute: boolean): void
-
Parameters
Returns void
off
- off<EventType>(event: EventType, callback: ZegoEventListener[EventType]): void
-
Type parameters
Parameters
-
event: EventType
-
callback: ZegoEventListener[EventType]
Returns void
on
- on<EventType>(event: EventType, callback: ZegoEventListener[EventType]): void
-
Type parameters
Parameters
-
event: EventType
-
callback: ZegoEventListener[EventType]
Returns void
registerAudioPlugin
- registerAudioPlugin(type: number, plugin: number): boolean
-
Parameters
-
type: number
-
plugin: number
Returns boolean
registerCustomAudioCapturePlugin
-
Parameters
Returns boolean
registerVideoPlugin
-
Parameters
-
type: number
-
plugin: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns boolean
removeAllLister
-
Returns void
removePublishCdnUrl
-
Parameters
-
streamID: string
-
targetURL: string
renewToken
- renewToken(roomID: string, token: string): void
-
Parameters
-
roomID: string
-
token: string
Returns void
sendAudioSideInfo
- sendAudioSideInfo(data: ArrayBuffer, timeStampMs: number, channel?: ZegoPublishChannel): void
-
Parameters
-
data: ArrayBuffer
-
timeStampMs: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
sendBarrageMessage
-
Parameters
-
roomID: string
-
message: string
sendBroadcastMessage
-
Parameters
-
roomID: string
-
message: string
sendCustomCommand
-
Parameters
-
roomID: string
-
command: string
-
toUserList: Array<ZegoUser>
sendSEI
-
Parameters
-
data: ArrayBuffer
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
setAECMode
-
Parameters
Returns void
setANSMode
-
Parameters
Returns void
setAllPlayStreamVolume
- setAllPlayStreamVolume(volume: number): void
-
Parameters
Returns void
setAppOrientation
-
Parameters
Returns void
setAppOrientationMode
-
Parameters
Returns void
setAudioCaptureStereoMode
-
Parameters
Returns void
setAudioConfig
-
Parameters
Returns void
setAudioDeviceMode
-
Parameters
Returns void
setAudioDeviceVolume
-
Parameters
-
-
deviceID: string
-
volume: number
Returns void
setAudioEqualizerGain
- setAudioEqualizerGain(bandIndex: number, bandGain: number): void
-
Parameters
-
bandIndex: number
-
bandGain: number
Returns void
setAudioMixMode
-
Parameters
Returns void
setAudioMixingVolume
-
Parameters
Returns void
setAudioRouteToSpeaker
- setAudioRouteToSpeaker(defaultToSpeaker: boolean): void
-
Parameters
-
defaultToSpeaker: boolean
Returns void
setAudioSource
-
Parameters
Returns number
setCameraExposureCompensation
-
Parameters
Returns void
setCameraExposureMode
-
Parameters
Returns void
setCameraExposurePointInPreview
-
Parameters
-
x: number
-
y: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
setCameraFocusMode
-
Parameters
Returns void
setCameraFocusPointInPreview
-
Parameters
-
x: number
-
y: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
setCameraZoomFactor
-
Parameters
Returns void
setCapturePipelineScaleMode
-
Parameters
Returns void
setCaptureVolume
- setCaptureVolume(volume: number): void
-
Parameters
Returns void
setEffectsBeautyParam
-
Parameters
Returns void
setElectronicEffects
-
Parameters
-
enable: boolean
-
-
tonal: number
Returns void
setHeadphoneMonitorVolume
- setHeadphoneMonitorVolume(volume: number): void
-
Parameters
Returns void
setMinVideoBitrateForTrafficControl
-
Parameters
Returns void
setMinVideoFpsForTrafficControl
-
Parameters
Returns void
setMinVideoResolutionForTrafficControl
- setMinVideoResolutionForTrafficControl(width: number, height: number, channel?: ZegoPublishChannel): void
-
Parameters
-
width: number
-
height: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
setPlayStreamBufferIntervalRange
- setPlayStreamBufferIntervalRange(streamID: string, minBufferInterval: number, maxBufferInterval: number): void
-
Parameters
-
streamID: string
-
minBufferInterval: number
-
maxBufferInterval: number
Returns void
setPlayStreamDecryptionKey
- setPlayStreamDecryptionKey(streamID: string, key: string): void
-
Parameters
-
streamID: string
-
key: string
Returns void
setPlayStreamVideoType
-
Parameters
Returns void
setPlayStreamsAlignmentProperty
-
Parameters
Returns void
setPlayVolume
- setPlayVolume(streamID: string, volume: number): void
-
Parameters
-
streamID: string
-
volume: number
Returns void
setPublishDualStreamConfig
-
Parameters
Returns void
setPublishStreamEncryptionKey
-
Parameters
Returns void
setPublishWatermark
-
Parameters
-
-
isPreviewVisible: boolean
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
setReverbAdvancedParam
-
Parameters
Returns void
setReverbEchoParam
-
Parameters
Returns void
setReverbPreset
-
Parameters
Returns void
setRoomExtraInfo
-
Parameters
-
roomID: string
-
key: string
-
value: string
setRoomScenario
-
Parameters
Returns void
setSEIConfig
-
Parameters
Returns void
setStreamAlignmentProperty
-
Parameters
-
alignment: number
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
Returns void
setStreamExtraInfo
-
Parameters
-
extraInfo: string
-
Default value channel: ZegoPublishChannel = zego.ZegoPublishChannel.Main
setTrafficControlFocusOn
-
Parameters
Returns void
setVideoConfig
-
Parameters
Returns void
setVideoMirrorMode
-
Parameters
Returns void
setVoiceChangerParam
-
Parameters
Returns void
setVoiceChangerPreset
-
Parameters
Returns void
startAudioDataObserver
-
Parameters
Returns void
startAudioSpectrumMonitor
- startAudioSpectrumMonitor(millisecond: number): void
-
Parameters
Returns void
startAudioVADStableStateMonitor
-
Parameters
Returns void
startMixerTask
-
Parameters
startNetworkSpeedTest
-
Parameters
Returns void
startPlayingStream
-
Parameters
Returns void
startPreview
-
Parameters
Returns void
startPublishingStream
-
Parameters
Returns void
startRecordingCapturedData
-
Parameters
Returns void
startSoundLevelMonitor
-
Parameters
Returns void
stopAudioDataObserver
- stopAudioDataObserver(): void
-
Returns void
stopAudioSpectrumMonitor
- stopAudioSpectrumMonitor(): void
-
Returns void
stopAudioVADStableStateMonitor
-
Parameters
Returns void
stopMixerTask
-
Parameters
stopNetworkSpeedTest
- stopNetworkSpeedTest(): void
-
Returns void
stopPlayingStream
- stopPlayingStream(streamID: string): void
-
Parameters
Returns void
stopPreview
-
Parameters
Returns void
stopPublishingStream
-
Parameters
Returns void
stopRecordingCapturedData
-
Parameters
Returns void
stopSoundLevelMonitor
- stopSoundLevelMonitor(): void
-
Returns void
switchRoom
- switchRoom(fromRoomID: string, toRoomID: string, config?: ZegoRoomConfig): void
-
Parameters
-
fromRoomID: string
-
toRoomID: string
-
Returns void
takePlayStreamSnapshot
-
Parameters
takePublishStreamSnapshot
-
Parameters
unregisterAudioPlugin
- unregisterAudioPlugin(type: number): boolean
-
Parameters
Returns boolean
unregisterCustomAudioCapturePlugin
-
Parameters
Returns boolean
unregisterVideoPlugin
-
Parameters
Returns boolean
updatePlayingCanvas
- updatePlayingCanvas(streamID: string, view: ZegoView): number
-
Parameters
Returns number
uploadLog
-
Returns void
useAudioDevice
-
Parameters
Returns void
useFrontCamera
-
Parameters
Returns void
Static createEngine
-
Parameters
Static destroyEngine
- destroyEngine(): Promise<void>
-
Returns Promise<void>
Static getInstance
-
Static getSDKVersion
-
Returns string
Static isFeatureSupported
-
Parameters
Returns boolean
Static setEngineConfig
-
Parameters
Returns void
Static setLogConfig
-
Parameters
Returns void
Static setRoomMode
-
Parameters
Returns void