Class AgoraRteScene
Constructors
constructor
new AgoraRteScene(sceneId: string, options: SceneObjects): AgoraRteScene
参数
参数名 | 描述 |
---|---|
sceneId: string | |
options: SceneObjects |
返回值
Properties
createTs
createTs?: number
dataStore
dataStore: AgoraRteSyncDataStore
logger
logger: LoggerFacade
sceneId
sceneId: string
Accessors
engine
get engine(): AgoraRteEngine
localUser
get localUser(): undefined | AgoraRteLocalUser
rtcChannel
get rtcChannel(): AGRtcChannel
rtcSid
get rtcSid(): string
rtmSid
get rtmSid(): string
timestampServerLocalGap
get timestampServerLocalGap(): number
Methods
addCloudProxyObserver
addCloudProxyObserver(observer: AgoraCloudProxyObserver): void
参数
参数名 | 描述 |
---|---|
observer: AgoraCloudProxyObserver |
返回值
addCustomMessageObserver
addCustomMessageObserver(observer: AgoraRteCustomMessageObserver): void
参数
参数名 | 描述 |
---|---|
observer: AgoraRteCustomMessageObserver |
返回值
enableDualStream
enableDualStream(enable: boolean, connectionType?: AGRtcConnectionType): Promise<void>
参数
参数名 | 描述 |
---|---|
enable: boolean | |
connectionType: AGRtcConnectionType |
返回值
getApiService
joinRTC
joinRTC(options?: AgoraRteSceneJoinRTCOptions): Promise<void>
参数
参数名 | 描述 |
---|---|
options: AgoraRteSceneJoinRTCOptions |
返回值
joinScene
joinScene(options: AgoraRteSceneJoinOptions): Promise<void>
参数
参数名 | 描述 |
---|---|
options: AgoraRteSceneJoinOptions |
返回值
leaveRTC
leaveRTC(connectionType?: AGRtcConnectionType): Promise<void>
参数
参数名 | 描述 |
---|---|
connectionType: AGRtcConnectionType |
返回值
leaveScene
muteRemoteAudioStream
muteRemoteVideoStream
muteRemoteVideoStreamMass
removeCloudProxyObserver
removeCloudProxyObserver(observer: AgoraCloudProxyObserver): void
参数
参数名 | 描述 |
---|---|
observer: AgoraCloudProxyObserver |
返回值
removeCustomMessageObserver
removeCustomMessageObserver(observer: AgoraRteCustomMessageObserver): void
参数
参数名 | 描述 |
---|---|
observer: AgoraRteCustomMessageObserver |
返回值
setAllRemoteTracksVolume
setLowStreamParameter
setLowStreamParameter(streamParameter: AGLowStreamParameter, connectionType?: AGRtcConnectionType): number
参数
参数名 | 描述 |
---|---|
streamParameter: AGLowStreamParameter | |
connectionType: AGRtcConnectionType |
返回值
setRemoteTrackVolume
setRemoteVideoStreamType
setRemoteVideoStreamType(streamUuid: string, streamType: AGRemoteVideoStreamType): number
参数
参数名 | 描述 |
---|---|
streamUuid: string | |
streamType: AGRemoteVideoStreamType |
返回值
updateRemoteMediaStreamBatch
updateRemoteMediaStreamBatch(streams: { audioSourceType?: AgoraRteAudioSourceType; audioState?: AgoraRteMediaPublishState; streamUuid: string; userUuid: string; videoSourceType?: AgoraRteVideoSourceType; videoState?: AgoraRteMediaPublishState }[]): Promise<any>
参数
参数名 | 描述 |
---|---|
streams: { audioSourceType?: AgoraRteAudioSourceType; audioState?: AgoraRteMediaPublishState; streamUuid: string; userUuid: string; videoSourceType?: AgoraRteVideoSourceType; videoState?: AgoraRteMediaPublishState }[] |