Class RCAudienceLivingRoom
Constructors
constructor
- new RCAudienceLivingRoom(_context: RTCContext, _runtime: IRuntime, _initOptions: IRCRTCInitOptions, _roomId: string, _joinResData: { token: string; kvEntries: IServerRTCRoomEntry[] }, livingType: RCLivingType, _clientSessionId?: string): RCAudienceLivingRoom
Parameters
_context: RTCContext
_runtime: IRuntime
_roomId: string
_joinResData: { token: string; kvEntries: IServerRTCRoomEntry[] }
token: string
kvEntries: IServerRTCRoomEntry[]
_clientSessionId: string = ...
Methods
getCDNPlayUrl
Parameters
Returns Promise<{ code: RCRTCCode; CDNPlayUrl?: string }>
subscribe
Parameters
unsubscribe
Parameters
getRemoteTrack
Parameters
getLocalTrack
Parameters
registerRoomEventListener
Parameters
Returns void
onAudioLevelChange
Parameters
Returns void
registerReportListener
Parameters
Returns void
getRoomId
Returns string
getCrtUserId
Returns string
getSessionId
Returns string
getRemoteUserIds
- getRemoteUserIds(): string[]
Returns string[]
getRemoteTracksByUserId
Parameters
getRemoteTracks
getRemoteRTCTracks
getRemoteMCUTracks
getCDNInfo
- getCDNInfo(): { resolution: RCResolution; fps: RCFrameRate; CDNEnable: undefined | boolean } | { resolution: undefined; fps: undefined; CDNEnable: boolean }
Returns { resolution: RCResolution; fps: RCFrameRate; CDNEnable: undefined | boolean } | { resolution: undefined; fps: undefined; CDNEnable: boolean }
getClientSessionId
- getClientSessionId(): string
Returns string
观众直播房间类 处理: 1、通知观众房间内 人员变更、资源变更 2、观众订阅、取消订阅资源