鸿蒙 CallPlus-v1.8.0
    Preparing search index...

    Interface RCCallPlusSession

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

    interface RCCallPlusSession {
        getCallId(): string;
        getCallType(): RCCallPlusType;
        getMediaType(): AUDIO | AUDIO_VIDEO;
        getCreatorUserId(): string;
        getInviterUserId(): string;
        isSecret(): boolean;
        getSecretKey(): string;
        getState(): RCCallPlusCallState;
        getUserList(): { userId: string; state: RCCallPlusSessionUserState }[];
        getCreateTimestamp(): Promise<{ code: number; startTime?: number }>;
        getDuration(): Promise<{ code: number; duration?: number }>;
        getSyncData(): string;
    }
    Index

    Methods

    • 获取 callId

      Returns string

      当前通话 id

    • 获取通话发起者 userId

      Returns string

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

      Returns string

    • 通话是否已加密

      Returns boolean

    • 获取通话加密密钥

      Returns string

    • 获取通话起始时间

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

    • 获取通话时长 通话未结束前,值为 0

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

    • 获取通话中的缓存数据,数据由通话发起人在发起通话时定义

      Returns string