Properties
_listener
Constructors
constructor
- new RCCallSession(_stateMachine: RCCallStateMachine, _rtcClient: RCRTCClient, _logger: ILogger, _options?: IRCCallSessionOptions): RCCallSession
Parameters
_stateMachine: RCCallStateMachine
_rtcClient: RCRTCClient
_logger: ILogger
_options: IRCCallSessionOptions = {}
Methods
registerSessionListener
Parameters
Returns void
changeAudioDevice
- changeAudioDevice(audioConstraints?: IMicphoneAudioProfile): Promise<{ code: RCCallErrorCode }>
Parameters
Optional audioConstraints: IMicphoneAudioProfile
invite
- invite(userIds: string[], options?: IInviteOptions): Promise<{ code: RCCallErrorCode }>
Parameters
userIds: string[]
options: IInviteOptions = {}
accept
Parameters
hungup
_changeMediaType
Parameters
descendAbility
disableVideoTrack
enableVideoTrack
disableAudioTrack
enableAudioTrack
getSessionId
Returns string
getRTCSessionId
- getRTCSessionId(): null | string
Returns null | string
getTargetId
Returns string
getConversationType
- getConversationType(): ConversationType
Returns ConversationType
getChannelId
Returns string
getRemoteUsers
- getRemoteUsers(): IUserData[]
Returns IUserData[]
getUsers
Returns IUserData[]
getUserState
Parameters
getState
getCallerId
Returns string
getMediaType
用户传进来的 对session的监听 (要在RCCallClient的_onInvite里判断,要求执行完onSession必须注册session的监听,所以这里是public)