Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RCCallPlusSession

对外 session 实例,仅有获取方法,无法修改

Hierarchy

  • RCCallPlusSession

Index

Constructors

  • new RCCallPlusSession(_session: RCCallInnerSession, _callEngine: RCCallEngine, _logger: BasicLogger): RCCallPlusSession
  • Parameters

    • _session: RCCallInnerSession
    • _callEngine: RCCallEngine
    • _logger: BasicLogger

    Returns RCCallPlusSession

Methods

  • getCallId(): string
  • 获取 CallId

    Returns string

  • getCreatorUserId(): string
  • 获取通话发起者 userId

    Returns string

  • getInviterUserId(): string
  • 获取通话邀请者 userId 呼入有值,呼出时,值为本地用户 UserId

    Returns string

  • getCreateTimestamp(): Promise<{ code: number; startTime?: number }>
  • 获取通话起始时间

    Returns Promise<{ code: number; startTime?: number }>

  • getDuration(): Promise<{ code: number; duration?: number }>
  • 获取通话时长 通话未结束前,值为 0

    Returns Promise<{ code: number; duration?: number }>