@ray-js/api 1.7.80 → 1.7.82

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.
@@ -1,30 +1,36 @@
1
1
  /**
2
2
  * MediaKit
3
3
  *
4
- * @version 3.6.4
4
+ * @version 3.7.0
5
5
  */
6
6
  declare namespace ty.media {
7
- /** @since MediaKit 2.0.1 */
7
+ /**
8
+ * Camera异层渲染组件的相机数据模型
9
+ * @since MediaKit 2.0.1
10
+ */
8
11
  export interface DiffLayerCamera {
9
12
  /**
10
- * 当前组件对应类型
13
+ * 当前异层组件对应的视图类型,默认为3(相机类型)
11
14
  * @since MediaKit 2.0.1
12
15
  * @defaultValue 3
13
16
  */
14
17
  type?: number
15
18
  }
16
19
 
17
- /** @since MediaKit 1.0.0 */
20
+ /**
21
+ * Video异层渲染组件的视频数据模型
22
+ * @since MediaKit 1.0.0
23
+ */
18
24
  export interface DiffLayerVideo {
19
25
  /**
20
- * 当前组件对应类型
26
+ * 当前异层组件对应的视图类型,默认为1(视频类型)
21
27
  * @since MediaKit 1.0.0
22
28
  * @defaultValue 1
23
29
  */
24
30
  type?: number
25
31
  }
26
32
 
27
- /** @since MediaKit 3.2.0 */
33
+ /** @since MediaKit 3.3.1 */
28
34
  export interface ManagerContext {
29
35
  /**
30
36
  * 间隔多长时间接收系统的录音信息(单位:ms)
@@ -33,22 +39,22 @@ declare namespace ty.media {
33
39
  */
34
40
  interval?: number
35
41
  /**
36
- * managerId
37
- * @since MediaKit 3.2.0
42
+ * 音频管理器实例 ID,由 getRGBAudioManager 创建后返回
43
+ * @since MediaKit 3.3.1
38
44
  */
39
45
  managerId: number
40
46
  }
41
47
 
42
- /** @since MediaKit 3.2.0 */
48
+ /** @since MediaKit 3.3.1 */
43
49
  export interface Received {
44
50
  /**
45
- * managerId
46
- * @since MediaKit 3.2.0
51
+ * 音频管理器实例 ID
52
+ * @since MediaKit 3.6.7
47
53
  */
48
54
  managerId: number
49
55
  /**
50
- * 语言转换内容
51
- * @since MediaKit 3.2.0
56
+ * 语音识别转换后的文本内容
57
+ * @since MediaKit 3.3.1
52
58
  */
53
59
  body: string
54
60
  }
@@ -57,7 +63,7 @@ declare namespace ty.media {
57
63
  /**
58
64
  * 开始识音
59
65
  * @public
60
- * @since MediaKit 3.2.0
66
+ * @since MediaKit 3.3.1
61
67
  * @platform iOS Android
62
68
  */
63
69
  startRGBRecord(params: {
@@ -70,7 +76,7 @@ declare namespace ty.media {
70
76
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
71
77
  complete?: () => void
72
78
  /** 接口调用成功的回调函数 */
73
- success?: (params: null) => void
79
+ success?: () => void
74
80
  /** 接口调用失败的回调函数 */
75
81
  fail?: (params: {
76
82
  /** 错误信息 */
@@ -90,7 +96,7 @@ declare namespace ty.media {
90
96
  /**
91
97
  * 结束识音
92
98
  * @public
93
- * @since MediaKit 3.2.0
99
+ * @since MediaKit 3.3.1
94
100
  * @platform iOS Android
95
101
  */
96
102
  stopRGBRecord(params: {
@@ -103,7 +109,7 @@ declare namespace ty.media {
103
109
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
104
110
  complete?: () => void
105
111
  /** 接口调用成功的回调函数 */
106
- success?: (params: null) => void
112
+ success?: () => void
107
113
  /** 接口调用失败的回调函数 */
108
114
  fail?: (params: {
109
115
  /** 错误信息 */
@@ -123,19 +129,19 @@ declare namespace ty.media {
123
129
  /**
124
130
  * 开始监听
125
131
  * @public
126
- * @since MediaKit 3.2.0
132
+ * @since MediaKit 3.3.1
127
133
  * @platform iOS Android
128
134
  */
129
135
  onAudioRgbChange(
130
136
  listener: (params: {
131
137
  /**
132
- * managerId
133
- * @since MediaKit 3.2.0
138
+ * 音频管理器实例 ID
139
+ * @since MediaKit 3.6.7
134
140
  */
135
141
  managerId: number
136
142
  /**
137
- * 语言转换内容
138
- * @since MediaKit 3.2.0
143
+ * 语音识别转换后的文本内容
144
+ * @since MediaKit 3.3.1
139
145
  */
140
146
  body: string
141
147
  }) => void
@@ -150,13 +156,13 @@ declare namespace ty.media {
150
156
  offAudioRgbChange(
151
157
  listener: (params: {
152
158
  /**
153
- * managerId
154
- * @since MediaKit 3.2.0
159
+ * 音频管理器实例 ID
160
+ * @since MediaKit 3.6.7
155
161
  */
156
162
  managerId: number
157
163
  /**
158
- * 语言转换内容
159
- * @since MediaKit 3.2.0
164
+ * 语音识别转换后的文本内容
165
+ * @since MediaKit 3.3.1
160
166
  */
161
167
  body: string
162
168
  }) => void
@@ -165,7 +171,7 @@ declare namespace ty.media {
165
171
  /**
166
172
  * 创建管理器
167
173
  * @public
168
- * @since MediaKit 3.2.0
174
+ * @since MediaKit 3.3.1
169
175
  * @platform iOS Android
170
176
  */
171
177
  export function getRGBAudioManager(params: {
@@ -178,7 +184,7 @@ declare namespace ty.media {
178
184
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
179
185
  complete?: () => void
180
186
  /** 接口调用成功的回调函数 */
181
- success?: (params: null) => void
187
+ success?: () => void
182
188
  /** 接口调用失败的回调函数 */
183
189
  fail?: (params: {
184
190
  /** 错误信息 */
@@ -1,23 +1,47 @@
1
1
  /**
2
2
  * MediaPlayerKit
3
3
  *
4
- * @version 1.0.33
4
+ * @version 1.0.34
5
5
  */
6
6
  declare namespace ty.mediaplayer {
7
7
  /**
8
- *@description 进入摄像头设置页面*/
8
+ * 进入摄像头设置页面
9
+ * @public
10
+ * @since MediaPlayerKit 1.0.0
11
+ * @platform iOS Android
12
+ */
9
13
  export function gotoCameraPanelMore(params: {
10
- /** 设备id */
14
+ /**
15
+ * 设备id
16
+ * @since MediaPlayerKit 1.0.0
17
+ */
11
18
  devId: string
19
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
20
+ complete?: () => void
21
+ /** 接口调用成功的回调函数 */
12
22
  success?: (params: boolean) => void
23
+ /** 接口调用失败的回调函数 */
13
24
  fail?: (params: {
25
+ /** 错误信息 */
14
26
  errorMsg: string
27
+ /** 错误码 */
15
28
  errorCode: string | number
29
+ /** 错误扩展 */
16
30
  innerError: {
31
+ /** 错误扩展码 */
17
32
  errorCode: string | number
33
+ /** 错误扩展信息 */
18
34
  errorMsg: string
19
35
  }
20
36
  }) => void
21
- complete?: () => void
22
37
  }): void
38
+
39
+ /** @since MediaPlayerKit 1.0.0 */
40
+ export interface DevModel {
41
+ /**
42
+ * 设备id
43
+ * @since MediaPlayerKit 1.0.0
44
+ */
45
+ devId: string
46
+ }
23
47
  }