@xylink/xy-rtc-sdk 4.0.8 → 4.0.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.
package/type/ability.d.ts CHANGED
@@ -6,13 +6,17 @@
6
6
  * @param { string } CHANGE_SEC_API - 终端录制接口整改为安全接口
7
7
  * @param { string } TRANSCRIPTION_API - 录制与转写分离,开启、关闭字幕使用新的接口
8
8
  * @param { string } CK_NSH - 农商行定制化 - sdk自定义,非服务下发
9
+ * @param { string } ENABLE_WEBRTC_THEME - 启用WebRTC主题
10
+ * @param { string } PUBLIC_SERVER - 公有云环境标识,服务端下发
9
11
  */
10
12
  export declare enum AbilityKey {
11
13
  USE_SEC_API = "use_sec_api",
12
14
  MEETING_SHARE_NEW_PAGE_API = "meeting_share_new_page_api",
13
15
  CHANGE_SEC_API = "hvv_240329",
14
16
  TRANSCRIPTION_API = "transcription_250627",
15
- CK_NSH = "ck_nsh"
17
+ CK_NSH = "ck_nsh",
18
+ ENABLE_WEBRTC_THEME = "enable_webrtc_theme",
19
+ PUBLIC_SERVER = "public_server"
16
20
  }
17
21
  /**
18
22
  * 能力集
package/type/client.d.ts CHANGED
@@ -197,6 +197,26 @@ export declare enum FacingMode {
197
197
  FRONT = "FRONT",
198
198
  BACK = "BACK"
199
199
  }
200
+ /**
201
+ * 更多画面流的最大数量
202
+ *
203
+ * @property { number } NINE - 9路画面流
204
+ * @property { number } EIGHTEEN - 18路画面流
205
+ * @property { number } THIRTY_TWO - 32路画面流
206
+ * @property { number } FORTY_NINE - 49路画面流
207
+ * @property { number } SIXTY_FOUR - 64路画面流
208
+ * @property { number } EIGHTY_ONE - 81路画面流
209
+ * @property { number } ONE_HUNDRED - 100路画面流
210
+ */
211
+ export declare enum XYMoreStreamsMaxCount {
212
+ NINE = 9,
213
+ EIGHTEEN = 18,
214
+ THIRTY_TWO = 32,
215
+ FORTY_NINE = 49,
216
+ SIXTY_FOUR = 64,
217
+ EIGHTY_ONE = 81,
218
+ ONE_HUNDRED = 100
219
+ }
200
220
  /**
201
221
  * 摄像头方向
202
222
  *
@@ -566,9 +586,11 @@ export interface IConferenceConfig {
566
586
  * 会议室可见性配置
567
587
  *
568
588
  * @param { boolean } subtitle - 是否显示字幕
589
+ * @param { boolean } transcription - 是否显示文字转写
569
590
  */
570
591
  export interface IConferenceDisplayConfig {
571
592
  subtitle?: boolean;
593
+ transcription?: boolean;
572
594
  }
573
595
  /**
574
596
  * 会议邀请信息
@@ -864,6 +886,10 @@ export interface ICustomStreamTrack {
864
886
  * 通话字幕-本地支持的语言
865
887
  */
866
888
  export type TLocalLanguage = (typeof SupportLocalLanguages)[number];
889
+ /**
890
+ * 通话字幕-本地展示的语言
891
+ */
892
+ export type TShowLanguage = 'Chinese' | 'English' | 'ChEn';
867
893
  export interface IOutputCustomLayout {
868
894
  [pid: string]: {
869
895
  resolution: number;
@@ -1069,7 +1095,9 @@ export interface IReceiveCustomMessage {
1069
1095
  * @property { boolean } enableHideLocalView - 是否启用隐藏本地画面模式,默认不启用,设置为false
1070
1096
  * @property { boolean } enableAudioPCM - 是否启用音频PCM,默认不启用,设置为false
1071
1097
  * @property { boolean } enableReCall - 是否支持重新呼叫, 默认启用, 设置为true
1072
- * @property { boolean } enableMoreStreams - 是否支持20路画面流,默认不启用,设置为false
1098
+ * @property { boolean } enableMoreStreams - 是否支持更多画面流,默认不启用,设置为false,后续仅配置moreStreamsMaxCount即可;如配置为true,则自动转为18路画面流
1099
+ * @property { boolean } moreStreamsMaxCount - 配置更多画面流的最大数量,默认是9,支持9/18/32路画面流,如配置为其他枚举/数值,则自动转为9画面
1100
+ * @property { boolean } enableMultiLayoutPolling - 是否响应会控多画面/轮询广播与自定义轮询布局,默认启用 true;为 false 时忽略轮询相关布局与状态
1073
1101
  */
1074
1102
  export interface IFeatureConfig {
1075
1103
  enableMeetingShout?: boolean;
@@ -1088,6 +1116,8 @@ export interface IFeatureConfig {
1088
1116
  enableAudioPCM?: boolean;
1089
1117
  enableReCall?: boolean;
1090
1118
  enableMoreStreams?: boolean;
1119
+ moreStreamsMaxCount?: XYMoreStreamsMaxCount;
1120
+ enableMultiLayoutPolling?: boolean;
1091
1121
  }
1092
1122
  /**
1093
1123
  * SDK功能控制开关的key
package/type/index.d.ts CHANGED
@@ -46,4 +46,5 @@ export * from '../feature/speaker/index.type';
46
46
  export * from '../feature/query/index.type';
47
47
  export * from '../feature/artboard/index.type';
48
48
  export * from '../feature/vep/index.type';
49
+ export * from '../feature/transcription/index.type';
49
50
  export * from '../enum/customizedkey';
package/type/meeting.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { LayoutAvatarType } from './index';
2
2
  import { ILoginInfo } from './client';
3
3
  import { StreamFrameRate, StreamResolution } from './stream';
4
+ import { XYTranscriptionApplicationStatus } from '../enum/meeting';
4
5
  /**
5
6
  * 水印范围
6
7
  *
@@ -105,6 +106,12 @@ export declare enum MEETING_DIRECTION {
105
106
  * @property { number } rxBandwidth - 控制下行带宽,值类似:1920
106
107
  * @property { number } pTxBandwidth - web节点People发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
107
108
  * @property { number } cTxBandwidth - web节点Content发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
109
+ * @property { number } bwMode - 带宽模式配置
110
+ * 0-本地带宽表;未配置带宽模式时,终端默认使用0-本地带宽表
111
+ * 1-极限模式----暂时不支持
112
+ * 2-低带宽模式----暂时不支持
113
+ * 3-普通模式----暂时不支持
114
+ * 4-高带宽模式-----20260327支持,文档:https://nones.xylink.com/wiki/#/team/AQzvsooq/space/WctinJ2n/page/Aoro2gn1
108
115
  */
109
116
  export interface IMediaConfig {
110
117
  peopleRecResolution: StreamResolution;
@@ -116,6 +123,7 @@ export interface IMediaConfig {
116
123
  rxBandwidth: number;
117
124
  pTxBandwidth: number;
118
125
  cTxBandwidth: number;
126
+ bwMode?: number;
119
127
  }
120
128
  /**
121
129
  * 媒体能力配置 请求参数
@@ -409,6 +417,7 @@ export interface XYNotificationContent {
409
417
  newImStatus?: XYNotificationStatus;
410
418
  waiterChatToHost?: XYNotificationStatus;
411
419
  meetingId?: string;
420
+ transcription?: string;
412
421
  }
413
422
  /**
414
423
  * 联席主持人/主持人/改名权限/聊天权限 等消息
@@ -431,12 +440,14 @@ export interface XYNotification {
431
440
  * @param HOST - 主持人
432
441
  * @param RENAME - 改名
433
442
  * @param IM - 聊天
443
+ * @param TRANSCRIPTION - 转写
434
444
  */
435
445
  export declare enum XYNotificationType {
436
446
  CO_CHAIR = "CO_CHAIR",
437
447
  HOST = "HOST",
438
448
  RENAME = "RENAME",
439
- IM = "IM"
449
+ IM = "IM",
450
+ TRANSCRIPTION = "TRANSCRIPTION"
440
451
  }
441
452
  /**
442
453
  * IM 聊天消息
@@ -470,4 +481,58 @@ export interface XYIMMsg {
470
481
  fromLocal?: boolean;
471
482
  toAll?: boolean;
472
483
  }
484
+ /**
485
+ * 设备信息
486
+ *
487
+ * @property { string } di - 设备ID
488
+ * @property { string } dn - 设备名称
489
+ */
490
+ export interface XYTranscriptionDevice {
491
+ di: string;
492
+ dn: string;
493
+ }
494
+ /**
495
+ * 实时转写-导出权限设置
496
+ *
497
+ * @property { XYTranscriptionDevice[] } deviceList - 支持导出的设备列表
498
+ * @property { XYTranscriptionPermission } value - 权限类型
499
+ */
500
+ export interface XYExportPermission {
501
+ deviceList: XYTranscriptionDevice[];
502
+ value: XYTranscriptionPermission;
503
+ }
504
+ /**
505
+ * 实时转写-控制权限设置
506
+ *
507
+ * @param { boolean } hasExportOpt - 是否支持导出
508
+ * @param { boolean } hasTranscriptionOpt - 是否支持开启转写
509
+ * @param { XYExportPermission } permission - 导出权限设置
510
+ * @param { boolean } saveTranscriptionResult - 保存转写结果开关,默认 true
511
+ * @param { boolean } host - 是否是主持人
512
+ * @param { string | null } operatorUri - 开启转写的 CallUri
513
+ * @param { XYTranscriptionApplicationStatus | null } application - 申请状态,非申请场景为 null
514
+ * @param { string | null } applicantUri - 申请人设备 URI,非申请场景为 null
515
+ * @param { string | null } applicantName - 申请人名称,非申请场景为 null
516
+ */
517
+ export interface XYTranscriptionPermission {
518
+ hasExportOpt: boolean;
519
+ hasTranscriptionOpt: boolean;
520
+ permission: XYExportPermission;
521
+ saveTranscriptionResult: boolean;
522
+ host: boolean;
523
+ operatorUri: string | null;
524
+ application?: XYTranscriptionApplicationStatus | null;
525
+ applicantUri?: string | null;
526
+ applicantName?: string | null;
527
+ }
528
+ /**
529
+ * 文字转写审批操作参数
530
+ *
531
+ * @param { 'approve' | 'reject' } action - 审批动作:同意或拒绝
532
+ * @param { boolean } stopAccepting - 是否同时标记当前主持人本场不再接受新请求,默认 false
533
+ */
534
+ export interface XYTranscriptionApprovalParams {
535
+ action: 'approve' | 'reject';
536
+ stopAccepting?: boolean;
537
+ }
473
538
  export {};
package/type/quality.d.ts CHANGED
@@ -23,8 +23,13 @@ export declare enum NetworkQualityLevel {
23
23
  * @property { string } osVersion 终端系统版本; 目前上报的是navigator.userAgent
24
24
  * @property { string } sockProto 终端接入协议方式 udpProto
25
25
  * @property { string } swVersion 终端软件版本
26
- * @property { string } cdrVersion 统计版本号 目前传的是10
26
+ * @property { string } cdrVersion 统计版本号 目前传的是11
27
27
  * @property { string } deviceType 设备类型 17
28
+ * @property { boolean } usePrivateIp 媒体协商最终是否使用内网地址,默认 false
29
+ * @property { string } localInternalIP 本地内网IP地址
30
+ * @property { number } localPort 本地端口
31
+ * @property { string } remoteIP 远端IP地址
32
+ * @property { number } remotePort 远端端口
28
33
  *
29
34
  */
30
35
  export interface IMeetingQualityData {
@@ -36,6 +41,11 @@ export interface IMeetingQualityData {
36
41
  swVersion: string;
37
42
  cdrVersion: number;
38
43
  deviceType: number;
44
+ usePrivateIp?: boolean;
45
+ localInternalIP?: string;
46
+ localPort?: number;
47
+ remoteIP?: string;
48
+ remotePort?: number;
39
49
  }
40
50
  /**
41
51
  * video 数据
@@ -113,6 +123,7 @@ export interface INetworkParameter {
113
123
  * @param INIT - 初始化模块
114
124
  * @param DESTROY - 销毁操作
115
125
  * @param STATS_CANDIDATE - 协商网络信息
126
+ * @param STATS_CANDIDATE_RESET - ICE异常时重置候选网络信息
116
127
  * @param STATS_VIDEO_RECEIVER - 视频接收数据
117
128
  * @param STATS_AUDIO_RECEIVER - 音频接收数据
118
129
  * @param STATS_SENDER - 发送数据
@@ -125,6 +136,7 @@ export declare enum QualityOperateType {
125
136
  INIT = "INIT",
126
137
  DESTROY = "DESTROY",
127
138
  STATS_CANDIDATE = "STATS_CANDIDATE",
139
+ STATS_CANDIDATE_RESET = "STATS_CANDIDATE_RESET",
128
140
  STATS_VIDEO_RECEIVER = "STATS_VIDEO_RECEIVER",
129
141
  STATS_AUDIO_RECEIVER = "STATS_AUDIO_RECEIVER",
130
142
  STATS_SENDER = "STATS_SENDER",
package/type/stream.d.ts CHANGED
@@ -401,6 +401,7 @@ export type IStreamInitParams = {
401
401
  * @property { [prop: string]: ISender } audioSender - 所有发送音频的列表数据
402
402
  * @property { number } audioSendLost - 音频发送的丢包率
403
403
  * @property { number } audioRecvLost - 音频接受的丢包率
404
+ * @property { boolean } usePrivateIp - 媒体协商最终使用的远端是否为内网地址,默认 null,不上传数据
404
405
  */
405
406
  export interface IInternals {
406
407
  bytesReceived: number;
@@ -436,6 +437,7 @@ export interface IInternals {
436
437
  };
437
438
  audioSendLost?: number;
438
439
  audioRecvLost?: number;
440
+ usePrivateIp?: boolean;
439
441
  }
440
442
  export type IInternels = IInternals;
441
443
  /**
@@ -0,0 +1,15 @@
1
+ export type XYDisplayMode = 'light' | 'dark' | 'system';
2
+ export interface XYThemeOptions {
3
+ globalColorConfig: Record<string, string>;
4
+ displayMode: XYDisplayMode;
5
+ }
6
+ /**
7
+ * 主题消息
8
+ *
9
+ * @param XY_THEME - 主题消息
10
+ * @param XY_THEME_APPLIED - 主题应用消息
11
+ */
12
+ export declare enum THEME_TYPE {
13
+ XY_THEME = "XY_THEME",
14
+ XY_THEME_APPLIED = "XY_THEME_APPLIED"
15
+ }