@rongcloud/plugin-wechat-rtc
Version:
@rongcloud/plugin-wechat-rtc
122 lines • 6.31 kB
TypeScript
/**
* signal 服务 RTC 业务的接口定义
*/
export declare const RTC_API: {
rtcRJoin_data: string;
rtcRExit: string;
rtcRInfo: string;
rtcUData: string;
rtcUDel: string;
rtcSetData: string;
/** 全量资源 URI 变更接口 */
userSetData: string;
rtcQryData: string;
rtcDelData: string;
rtcToken: string;
rtcUserState: string;
rtcUList: string;
/** RTC 直播观众加房间 */
viewerJoinR: string;
/** RTC 直播观众退出房间 */
viewerExitR: string;
/** RTC 观众端 kv 通知拉取 (kv 为主播加入/退出人员列表、发布/取消发布的资源) */
rtcPullKv: string;
/** RTC 直播身份切换 */
rtcIdentityChange: string;
/** 直播连麦邀请 */
rtcInvite: string;
/** 直播连麦取消邀请 */
rtcCancelInvite: string;
/** 直播连麦邀请响应 */
rtcInviteAnswer: string;
/** 结束直播连麦邀请 */
rtcEndInvite: string;
/** RTC 查询用户信息(是否在房间内) */
rtcQueryJoined: string;
/** 拉取 rtc 和 living room 的资源状态 */
rtcPullRoomStatus: string;
/** 上报融云SDK信息 */
reportsdk: string;
/** rtcping */
rtcPing: string;
};
export declare enum RTCPB {
RtcInput = "RtcInput",
RtcOutput = "RtcOutput",
RtcUserListOutput = "RtcUserListOutput",
SetUserStatusInput = "SetUserStatusInput",
RtcSetDataInput = "RtcSetDataInput",
RtcUserSetDataInput = "RtcUserSetDataInput",
RtcDataInput = "RtcDataInput",
RtcSetOutDataInput = "RtcSetOutDataInput",
MCFollowInput = "MCFollowInput",
RtcTokenOutput = "RtcTokenOutput",
RtcQryOutput = "RtcQryOutput",
RtcQryUserOutDataInput = "RtcQryUserOutDataInput",
RtcUserOutDataOutput = "RtcUserOutDataOutput",
RtcQueryListInput = "RtcQueryListInput",
RtcRoomInfoOutput = "RtcRoomInfoOutput",
RtcValueInfo = "RtcValueInfo",
RtcKeyDeleteInput = "RtcKeyDeleteInput",
RtcNotifyMsg = "RtcNotifyMsg",
RtcPullKV = "RtcPullKV",
RtcKVOutput = "RtcKVOutput",
RtcQueryUserJoinedInput = "RtcQueryUserJoinedInput",
RtcQueryUserJoinedOutput = "RtcQueryUserJoinedOutput",
RtcViewerJoinedOutput = "RtcViewerJoinedOutput",
RtcInviteInput = "RtcInviteInput",
RtcCancelInviteInput = "RtcCancelInviteInput",
RtcInviteAnswerInput = "RtcInviteAnswerInput",
RtcEndInviteInput = "RtcEndInviteInput",
RtcRoomStatusInput = "RtcRoomStatusInput",
RtcRoomStatusOutput = "RtcRoomStatusOutput",
RtcReportSDKInput = "RtcReportSDKInput",
RtcPBPolaris = "RCRTCPBPolaris",
RtcPBR1Info = "RCRTCPBR1Info",
RtcPBR2Info = "RCRTCPBR2Info",
RtcPBR3Info = "RCRTCPBR3Info",
RtcPBR4Info = "RCRTCPBR4Info",
RtcPBStatusInfo = "RCRTCPBStatusInfo",
RtcPBStreamInfo = "RCRTCPBStreamInfo"
}
export declare const keymaps: {
readonly RtcInput: readonly ["roomType", "broadcastType", "extraInnerData", "needSysChatroom", "identityChangeType", "joinType", "innerDatas", "outerDatas", "supportNtf"];
readonly RtcOutput: readonly ["version"];
readonly RtcUserListOutput: readonly ["users", "token", "sessionId", "roomInfo", "version"];
readonly SetUserStatusInput: readonly ["status"];
readonly RtcSetDataInput: readonly ["interior", "target", "key", "value", "objectName", "content"];
readonly RtcUserSetDataInput: readonly ["valueInfo", "objectName", "content"];
readonly RtcDataInput: readonly ["interior", "target", "key", "objectName", "content"];
readonly RtcSetOutDataInput: readonly ["target", "valueInfo", "objectName", "content"];
readonly MCFollowInput: readonly ["state"];
readonly RtcTokenOutput: readonly ["rtcToken"];
readonly RtcQryOutput: readonly ["outInfo"];
readonly RtcQryUserOutDataInput: readonly ["userId"];
readonly RtcUserOutDataOutput: readonly ["user"];
readonly RtcQueryListInput: readonly ["order"];
readonly RtcRoomInfoOutput: readonly ["roomId", "roomData", "userCount", "list"];
readonly RtcValueInfo: readonly ["key", "value"];
readonly RtcKeyDeleteInput: readonly ["key"];
readonly RtcNotifyMsg: readonly ["type", "time", "roomId"];
readonly RtcPullKV: readonly ["timestamp", "roomId"];
readonly RtcKVOutput: readonly ["entries", "bFullUpdate", "syncTime"];
readonly RtcQueryUserJoinedInput: readonly ["userId"];
readonly RtcQueryUserJoinedOutput: readonly ["info"];
readonly RtcInviteInput: readonly ["invitedUserId", "timeoutTime", "invitedRoomId", "inviteInfo", "inviteSessionId"];
readonly RtcCancelInviteInput: readonly ["invitedUserId", "invitedRoomId", "inviteInfo", "inviteSessionId"];
readonly RtcInviteAnswerInput: readonly ["inviteUserId", "answerCode", "inviteRoomId", "inviteSessionId", "content", "key", "value"];
readonly RtcEndInviteInput: readonly ["inviteRoomId", "inviteSessionId", "inviteContent", "inviteRoomKeys"];
readonly RtcRoomStatusInput: readonly ["version"];
readonly RtcRoomStatusOutput: readonly ["bFullStatus", "version", "usersData", "roomStatus"];
readonly RtcReportSDKInput: readonly ["sdkInfo"];
readonly RCRTCPBPolaris: readonly ["type", "appKey", "sessionId", "roomId", "roomCreateTime", "userId", "userRole", "joinTime", "signalDataCenter", "r1Info", "r2Info", "r3Info", "r4Info"];
readonly RCRTCPBR1Info: readonly ["joinTime", "rtcVersion", "imVersion", "platform", "device", "os", "browserName", "browserVersion"];
readonly RCRTCPBR2Info: readonly ["joinTime", "sendTime", "rtcActionType", "rtcActionStatus", "trackId"];
readonly RCRTCPBR3Info: readonly ["info"];
readonly RCRTCPBR4Info: readonly ["info"];
readonly RCRTCPBStatusInfo: readonly ["joinTime", "receiveTime", "totalBitRate", "appCPUUsage", "systemCPUUsage", "systemCPUFrequency", "networkStatus", "googleRTTNetwork", "ipAddress", "useReceiveBroadBand", "useSendBroadBand", "packetLossCount", "streams"];
readonly RCRTCPBStreamInfo: readonly ["trackId", "codeName", "volume", "samplingRate", "bitRate", "packetLossRate", "frameRate", "resolution", "blockTime", "jitterData", "nAckCount", "pliCount", "googleRTTTotalTime", "isReceiveFirstFrameRate", "codeType", "isEnabled"];
};
export type RTCKeyMaps = typeof keymaps;
export declare const desc: string;
//# sourceMappingURL=proto.d.ts.map