@xylink/xy-rtc-sdk 3.9.9 → 3.9.10

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.
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  *
6
6
  * Created at : 2023-04-24 14:16:27
7
- * Last modified : 2023-05-17 16:31:59
7
+ * Last modified : 2024-04-17 19:52:00
8
8
  */
9
9
  declare const _default: {
10
10
  new (scriptURL: string | URL, options?: WorkerOptions | undefined): Worker;
@@ -23,8 +23,6 @@ export interface ICheckSystemRequirements {
23
23
  detail: {
24
24
  isSupportRTC: boolean;
25
25
  isSupportWebsocket: boolean;
26
- isSupportBrowser: boolean;
27
- isSupportMobileBrowser: boolean;
28
26
  isSupportH264: boolean;
29
27
  isSupportAddTransceiver: boolean;
30
28
  isSupportAddtrack: boolean;
@@ -651,12 +651,12 @@ export interface IMeetingControl {
651
651
  /**
652
652
  * Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
653
653
  *
654
- * @property { string } id 参会者唯一id,值为 endpointId + mediagroupid,用于区分一个人同时发送people+content画面数据
654
+ * @property { string } key 内部Key,包含参会者endpointId、多分组通道信息,由一定规则生成;
655
655
  * @property { IDeviceType } deviceType 设备类型
656
- * @property { string } endpointId 设备id
656
+ * @property { string } endpointId 设备ID
657
657
  * @property { string } displayName 参会者名称
658
658
  * @property { number } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
659
- * @property { number } participantId 参会者id
659
+ * @property { number } participantId 参会者人员临时ID,迁会之后此ID会发生变化
660
660
  * @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
661
661
  * @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
662
662
  * @property { boolean } isForceFullScreen 参会者是否是主画面
@@ -672,7 +672,7 @@ export interface IMeetingControl {
672
672
  * @property { boolean } isPolling ignore
673
673
  */
674
674
  export interface IRoster extends Partial<ILayoutRoster> {
675
- id: string;
675
+ key: string;
676
676
  deviceType: IDeviceType;
677
677
  endpointId: string;
678
678
  displayName: string;
@@ -802,6 +802,7 @@ export interface ISpeakerInfo {
802
802
  * 布局对象
803
803
  *
804
804
  * @property { IRoster } roster 参会者基本信息、状态信息,例如:用户名、麦克风/摄像头状态、是否是主会场等信息
805
+ * @property { string } id - Layout ID
805
806
  * @property { ILayoutState } state 当前参会者的画面状态信息,暂时未使用
806
807
  * @property { any } rotate 当前参会者的旋转信息,用于设置video标签样式
807
808
  * @property { { left: string; top: string; width: string; height: string } } positionStyle 当前参会者的位置样式
@@ -815,11 +816,11 @@ export interface ISpeakerInfo {
815
816
  * @property { number } resolution 忽略, 2.0.2以前的版本 自定义布局roster请流使用
816
817
  * @property { number } quality 忽略, 2.0.2以前的版本 自定义布局roster请流使用
817
818
  * @property { AutoState } pollingState 轮询多画面状态
818
- * @property { string } pollingId - 多画面ID
819
819
  * @property { string } pollingName - 多画面名称
820
820
  */
821
821
  export interface ILayout {
822
822
  roster: IRoster | null;
823
+ id: string;
823
824
  state?: ILayoutState;
824
825
  rotate?: any;
825
826
  positionStyle?: {
@@ -841,7 +842,6 @@ export interface ILayout {
841
842
  resolution?: number;
842
843
  quality?: number;
843
844
  pollingState?: AutoState;
844
- pollingId?: string;
845
845
  pollingName?: string;
846
846
  }
847
847
  /**
@@ -1002,6 +1002,12 @@ export type IAudioRenders = {
1002
1002
  ele: any;
1003
1003
  };
1004
1004
  };
1005
+ /**
1006
+ * 管理所有的Video Managers
1007
+ *
1008
+ * @param { string } obj.key - Layout Id,参会者唯一ID
1009
+ * @param { VideoManager } obj.value - VideoManager模块
1010
+ */
1005
1011
  export type IVideoRenders = {
1006
1012
  [key: string]: VideoManager & {
1007
1013
  match?: boolean;
@@ -13,9 +13,12 @@ export declare enum LayoutAvatarType {
13
13
  IMAGE = 1
14
14
  }
15
15
  /**
16
- * Layout map
16
+ * Layout List数据,支持画面重复渲染
17
+ *
18
+ * @param { string } Map.key - Roster Id,一对多关系,同一个Id可能会有多个画面重复渲染
19
+ * @param { ILayout[] } Map.value - Layout List数据,每个一Layout代表一路画面
17
20
  */
18
- export type TLayoutMap = Map<string, ILayout>;
21
+ export type TLayoutMap = Map<string, ILayout[]>;
19
22
  /**
20
23
  * 模版类型
21
24
  */
@@ -264,3 +267,10 @@ export interface TemplateItem {
264
267
  export interface LayoutState {
265
268
  isPolling: boolean;
266
269
  }
270
+ /**
271
+ * TrackId获取VideoStream和VideoStreamTrack数据
272
+ */
273
+ export interface ResultVideoStream {
274
+ videoStream: MediaStream | null;
275
+ track: MediaStreamTrack | null;
276
+ }
@@ -62,11 +62,17 @@ export interface IExportUserInfo extends ILoginInfo {
62
62
  * @property { string? } pvrxResolution 请流能力
63
63
  * @property { boolean } isSupportHighResolution 是否支持高分辨率请流
64
64
  * @property { StreamResolution } maxRequestResolution 最高支持请流分辨率
65
+ * @property { number } rxBandwidth - web节点接收带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
66
+ * @property { number } pTxBandwidth - web节点People发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
67
+ * @property { number } cTxBandwidth - web节点Content发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
65
68
  */
66
69
  export interface IMediaConfig {
67
70
  pvrxResolution?: string;
68
71
  isSupportHighResolution?: boolean;
69
72
  maxRequestResolution?: StreamResolution;
73
+ rxBandwidth?: number;
74
+ pTxBandwidth?: number;
75
+ cTxBandwidth?: number;
70
76
  }
71
77
  /**
72
78
  * 媒体能力配置 请求参数
@@ -2,7 +2,7 @@
2
2
  * Peer lib types
3
3
  *
4
4
  * Created at : 2023-04-10 18:10:00
5
- * Last modified : 2023-04-17 14:02:34
5
+ * Last modified : 2024-04-23 10:23:45
6
6
  */
7
7
  /**
8
8
  * RTCPeerConnection通道方向
@@ -18,3 +18,44 @@ export declare enum RTCDirection {
18
18
  SENDONLY = "sendonly",
19
19
  SENDRECV = "sendrecv"
20
20
  }
21
+ export declare enum PeerState {
22
+ 'new' = "new",
23
+ 'connecting' = "connecting",
24
+ 'connected' = "connected",
25
+ 'disconnected' = "disconnected",
26
+ 'failed' = "failed",
27
+ 'closed' = "closed",
28
+ 'unknown' = "unknown"
29
+ }
30
+ export declare enum ICEState {
31
+ 'new' = "new",
32
+ 'checking' = "checking",
33
+ 'connected' = "connected",
34
+ 'disconnected' = "disconnected",
35
+ 'completed' = "completed",
36
+ 'failed' = "failed",
37
+ 'closed' = "closed",
38
+ 'unknown' = "unknown"
39
+ }
40
+ export declare enum PeerCallState {
41
+ 'INIT' = "INIT",
42
+ 'CONNECTED' = "CONNECTED",
43
+ 'CONNECTING' = "CONNECTING",
44
+ 'SOCKET_CONNECTING' = "SOCKET_CONNECTING",
45
+ 'DISCONNECTED' = "DISCONNECTED",
46
+ 'RESTART' = "RESTART",
47
+ 'RECONNECTED' = "RECONNECTED",
48
+ 'FAILED' = "FAILED"
49
+ }
50
+ /**
51
+ * 重新创建Peer连接的触发来源
52
+ *
53
+ * @property MEDIA - 来源于迁会消息
54
+ * @property PEER - 来源于Peer连接异常
55
+ * @property INIT - 初始化状态
56
+ */
57
+ export declare enum ReconnectEntry {
58
+ 'MEDIA' = "MEDIA",
59
+ 'PEER' = "PEER",
60
+ 'INIT' = "INIT"
61
+ }
@@ -2,7 +2,7 @@
2
2
  * Polling Lib Type Defined
3
3
  *
4
4
  * Created at : 2022-10-27 18:13:24
5
- * Last modified : 2024-03-08 18:57:07
5
+ * Last modified : 2024-04-15 17:04:32
6
6
  */
7
7
  import { ILayoutState, IRoster } from './client';
8
8
  import { ExternalTemplateConfig } from './layout';
@@ -211,11 +211,12 @@ export interface ICustomizedLayout {
211
211
  * @property { number } resolution - 忽略, 2.0.2以前的版本 自定义布局roster请流使用
212
212
  * @property { number } quality - 忽略, 2.0.2以前的版本 自定义布局roster请流使用
213
213
  * @property { AutoState } pollingState - 轮询多画面状态
214
- * @property { string } pollingId - 多画面ID
215
214
  * @property { string } pollingName - 多画面名称
215
+ * @property { string } id - Roster/Layout ID
216
216
  */
217
217
  export interface PollingLayout {
218
218
  roster: IRoster | null;
219
+ id: string;
219
220
  state?: ILayoutState;
220
221
  rotate?: any;
221
222
  positionStyle?: {
@@ -237,6 +238,5 @@ export interface PollingLayout {
237
238
  resolution?: number;
238
239
  quality?: number;
239
240
  pollingState?: AutoState;
240
- pollingId?: string;
241
241
  pollingName?: string;
242
242
  }