@xylink/xy-rtc-sdk 4.0.9 → 4.0.11-beta.0

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/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
  *
@@ -416,6 +417,7 @@ export interface XYNotificationContent {
416
417
  newImStatus?: XYNotificationStatus;
417
418
  waiterChatToHost?: XYNotificationStatus;
418
419
  meetingId?: string;
420
+ transcription?: string;
419
421
  }
420
422
  /**
421
423
  * 联席主持人/主持人/改名权限/聊天权限 等消息
@@ -438,12 +440,14 @@ export interface XYNotification {
438
440
  * @param HOST - 主持人
439
441
  * @param RENAME - 改名
440
442
  * @param IM - 聊天
443
+ * @param TRANSCRIPTION - 转写
441
444
  */
442
445
  export declare enum XYNotificationType {
443
446
  CO_CHAIR = "CO_CHAIR",
444
447
  HOST = "HOST",
445
448
  RENAME = "RENAME",
446
- IM = "IM"
449
+ IM = "IM",
450
+ TRANSCRIPTION = "TRANSCRIPTION"
447
451
  }
448
452
  /**
449
453
  * IM 聊天消息
@@ -477,4 +481,58 @@ export interface XYIMMsg {
477
481
  fromLocal?: boolean;
478
482
  toAll?: boolean;
479
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
+ }
480
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
+ }