larksr_websdk 3.2.10 → 3.2.11

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.
@@ -164,6 +164,9 @@ interface LarkSREvent extends LocalEvent<LarkSRClientEvent> {
164
164
  code?: number;
165
165
  larkevent?: LarkEventType;
166
166
  }
167
+ declare type PublicPortMapping = {
168
+ [key: string]: string;
169
+ };
167
170
  /**
168
171
  * 构造 LarkSR 参数
169
172
  */
@@ -271,6 +274,19 @@ interface ILarkSRConfig {
271
274
  * 初始化鼠标模式, true 锁定,false 非锁定
272
275
  */
273
276
  initCursorMode?: boolean;
277
+ /**
278
+ * 渲染服务器外网端口映射
279
+ * 格式为 key=[渲染服务器IP:PORT] value=[外网IP:PORT]
280
+ * {
281
+ * "RENDER-A-IP:RENDER-A-PORT1": "PUBLIC-A-IP:PORT1",
282
+ * "RENDER-B-IP:RENDER-B-PORT1": "PUBLIC-A-IP:PORT2",
283
+ * "RENDER-C-IP:RENDER-C-PORT1": "PUBLIC-A-IP:PORT3",
284
+ * "RENDER-D-IP:RENDER-D-PORT1": "PUBLIC-B-IP:PORT1",
285
+ * "RENDER-E-IP:RENDER-E-PORT1": "PUBLIC-B-IP:PORT2",
286
+ * "RENDER-E-IP:RENDER-E-PORT2": "PUBLIC-C-IP:PORT1",
287
+ * }
288
+ */
289
+ publicPortMapping?: PublicPortMapping;
274
290
  }
275
291
  /**
276
292
  * 通过平行云托管平台创建客户端并启动应用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larksr_websdk",
3
- "version": "3.2.10",
3
+ "version": "3.2.11",
4
4
  "description": "Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://pingxingyun.github.io/webclient_sdk/",
5
5
  "keywords": [
6
6
  "pingxingyun",
@@ -0,0 +1,24 @@
1
+ export default class IceCandidateParser {
2
+ sdpMLineIndex: number | null;
3
+ sdpMid: string | null;
4
+ usernameFragment: string | null;
5
+ header: string;
6
+ private props;
7
+ constructor(ice: RTCIceCandidateInit);
8
+ get foundation(): string;
9
+ set foundation(f: string);
10
+ get component(): string;
11
+ set component(f: string);
12
+ get protocol(): string;
13
+ set protocol(p: string);
14
+ get priority(): string;
15
+ set priority(p: string);
16
+ get ip(): string;
17
+ set ip(ip: string);
18
+ get port(): string;
19
+ set port(port: string);
20
+ get type(): string;
21
+ get candidate(): string;
22
+ genNewIceCandidateInit(): RTCIceCandidateInit;
23
+ genNewIceCandidate(): RTCIceCandidate;
24
+ }
@@ -92,7 +92,7 @@ export default class PeerConnection extends EventBase<WEBRTC_EVENT_TYPE, WebRTCE
92
92
  createOffer(): void;
93
93
  close(): void;
94
94
  onRemoteDescription(des: RTCSessionDescriptionInit): void;
95
- onReceiveCandidate(candateInit: RTCIceCandidateInit | null): void;
95
+ onReceiveCandidate(candateInit: RTCIceCandidateInit): void;
96
96
  startNetTest(): void;
97
97
  stopNetTest(): void;
98
98
  sendInput(input: Input.CloudLark.ClientInput): void;
package/types/larksr.d.ts CHANGED
@@ -164,6 +164,9 @@ interface LarkSREvent extends LocalEvent<LarkSRClientEvent> {
164
164
  code?: number;
165
165
  larkevent?: LarkEventType;
166
166
  }
167
+ declare type PublicPortMapping = {
168
+ [key: string]: string;
169
+ };
167
170
  /**
168
171
  * 构造 LarkSR 参数
169
172
  */
@@ -271,6 +274,19 @@ interface ILarkSRConfig {
271
274
  * 初始化鼠标模式, true 锁定,false 非锁定
272
275
  */
273
276
  initCursorMode?: boolean;
277
+ /**
278
+ * 渲染服务器外网端口映射
279
+ * 格式为 key=[渲染服务器IP:PORT] value=[外网IP:PORT]
280
+ * {
281
+ * "RENDER-A-IP:RENDER-A-PORT1": "PUBLIC-A-IP:PORT1",
282
+ * "RENDER-B-IP:RENDER-B-PORT1": "PUBLIC-A-IP:PORT2",
283
+ * "RENDER-C-IP:RENDER-C-PORT1": "PUBLIC-A-IP:PORT3",
284
+ * "RENDER-D-IP:RENDER-D-PORT1": "PUBLIC-B-IP:PORT1",
285
+ * "RENDER-E-IP:RENDER-E-PORT1": "PUBLIC-B-IP:PORT2",
286
+ * "RENDER-E-IP:RENDER-E-PORT2": "PUBLIC-C-IP:PORT1",
287
+ * }
288
+ */
289
+ publicPortMapping?: PublicPortMapping;
274
290
  }
275
291
  /**
276
292
  * 通过平行云托管平台创建客户端并启动应用