@rongcloud/plugin-rtc 5.5.5 → 5.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/codec/RTCContext.d.ts +2 -2
- package/dist/core/command/helper.d.ts +8 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
|
@@ -30,7 +30,7 @@ export declare class RTCContext {
|
|
|
30
30
|
setRTCTotalRes(roomId: string, message: {
|
|
31
31
|
name: string;
|
|
32
32
|
content: string;
|
|
33
|
-
}, valueInfo: string, objectName: string, mcuValInfo?: string): Promise<ErrorCode>;
|
|
33
|
+
}, valueInfo: string, objectName: string, mcuValInfo?: string, cdnValInfo?: string): Promise<ErrorCode>;
|
|
34
34
|
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
35
35
|
getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): IPromiseResult<KVString>;
|
|
36
36
|
removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
|
|
@@ -55,7 +55,7 @@ export declare class RTCContext {
|
|
|
55
55
|
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
56
56
|
pullRTCRoomEntry(roomId: string): Promise<IAsyncRes<IChrmKVPullData>>;
|
|
57
57
|
decodeRtcNotify(buffer: Uint8Array): {
|
|
58
|
-
time:
|
|
58
|
+
time: number;
|
|
59
59
|
type: any;
|
|
60
60
|
roomId: any;
|
|
61
61
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { RCRTCCode } from '../enums/RCRTCCode';
|
|
2
2
|
import { ISubscribeAttr } from '../interfaces';
|
|
3
|
-
import { IExchangeReqBody } from '../service';
|
|
3
|
+
import { ICDNUris, IExchangeReqBody } from '../service';
|
|
4
4
|
import { ReadableStore } from '../Store';
|
|
5
5
|
import RCRTCPeerConnection from '../webrtc/RCRTCPeerConnection';
|
|
6
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
6
7
|
/**
|
|
7
8
|
* 获取 exchange 接口的请求体数据
|
|
8
9
|
* @param subscribeList 订阅清单
|
|
@@ -11,6 +12,12 @@ import RCRTCPeerConnection from '../webrtc/RCRTCPeerConnection';
|
|
|
11
12
|
* @param store: Store
|
|
12
13
|
*/
|
|
13
14
|
export declare function createExchangeParams(subscribeList: ISubscribeAttr[], iceRestart: boolean, pc: RCRTCPeerConnection, store: ReadableStore): Promise<IExchangeReqBody>;
|
|
15
|
+
/**
|
|
16
|
+
* 给房间设置 CDN 数据
|
|
17
|
+
*/
|
|
18
|
+
export declare function setRoomCDNInfo(context: RTCContext, roomId: string, CDNUris: ICDNUris): Promise<{
|
|
19
|
+
code: RCRTCCode;
|
|
20
|
+
}>;
|
|
14
21
|
/**
|
|
15
22
|
* 开启、停用 CDN 推资源后发信令
|
|
16
23
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.5.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.5.6
|
|
3
|
+
* CommitId - bdde7363c1a0707e32aa8e4383c0ab3796755c6c
|
|
4
|
+
* Tue Nov 01 2022 18:49:56 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import * as _rongcloud_engine from '@rongcloud/engine';
|
|
@@ -1461,7 +1461,7 @@ declare class RTCContext {
|
|
|
1461
1461
|
setRTCTotalRes(roomId: string, message: {
|
|
1462
1462
|
name: string;
|
|
1463
1463
|
content: string;
|
|
1464
|
-
}, valueInfo: string, objectName: string, mcuValInfo?: string): Promise<ErrorCode>;
|
|
1464
|
+
}, valueInfo: string, objectName: string, mcuValInfo?: string, cdnValInfo?: string): Promise<ErrorCode>;
|
|
1465
1465
|
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
1466
1466
|
getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): IPromiseResult<KVString>;
|
|
1467
1467
|
removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
|
|
@@ -1486,7 +1486,7 @@ declare class RTCContext {
|
|
|
1486
1486
|
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
1487
1487
|
pullRTCRoomEntry(roomId: string): Promise<IAsyncRes<IChrmKVPullData>>;
|
|
1488
1488
|
decodeRtcNotify(buffer: Uint8Array): {
|
|
1489
|
-
time:
|
|
1489
|
+
time: number;
|
|
1490
1490
|
type: any;
|
|
1491
1491
|
roomId: any;
|
|
1492
1492
|
};
|