quickvo-player 0.0.2
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/README.md +340 -0
- package/dist/QuickVoPlayer.d.ts +32 -0
- package/dist/RoomUser.d.ts +35 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2358 -0
- package/dist/index.umd.cjs +3 -0
- package/dist/protos/compiled.d.ts +771 -0
- package/dist/protos/index.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
3
|
+
/** Namespace com. */
|
|
4
|
+
export namespace com {
|
|
5
|
+
|
|
6
|
+
/** Namespace quick. */
|
|
7
|
+
namespace quick {
|
|
8
|
+
|
|
9
|
+
/** Namespace voice. */
|
|
10
|
+
namespace voice {
|
|
11
|
+
|
|
12
|
+
/** Namespace proto. */
|
|
13
|
+
namespace proto {
|
|
14
|
+
|
|
15
|
+
/** Properties of a SeiData. */
|
|
16
|
+
interface ISeiData {
|
|
17
|
+
|
|
18
|
+
/** SeiData event */
|
|
19
|
+
event?: (com.quick.voice.proto.EventType|null);
|
|
20
|
+
|
|
21
|
+
/** SeiData data */
|
|
22
|
+
data?: (Uint8Array|null);
|
|
23
|
+
|
|
24
|
+
/** SeiData compress */
|
|
25
|
+
compress?: (boolean|null);
|
|
26
|
+
|
|
27
|
+
/** SeiData version */
|
|
28
|
+
version?: (number|null);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Represents a SeiData. */
|
|
32
|
+
class SeiData implements ISeiData {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new SeiData.
|
|
36
|
+
* @param [properties] Properties to set
|
|
37
|
+
*/
|
|
38
|
+
constructor(properties?: com.quick.voice.proto.ISeiData);
|
|
39
|
+
|
|
40
|
+
/** SeiData event. */
|
|
41
|
+
public event: com.quick.voice.proto.EventType;
|
|
42
|
+
|
|
43
|
+
/** SeiData data. */
|
|
44
|
+
public data: Uint8Array;
|
|
45
|
+
|
|
46
|
+
/** SeiData compress. */
|
|
47
|
+
public compress: boolean;
|
|
48
|
+
|
|
49
|
+
/** SeiData version. */
|
|
50
|
+
public version: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Creates a new SeiData instance using the specified properties.
|
|
54
|
+
* @param [properties] Properties to set
|
|
55
|
+
* @returns SeiData instance
|
|
56
|
+
*/
|
|
57
|
+
public static create(properties?: com.quick.voice.proto.ISeiData): com.quick.voice.proto.SeiData;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Encodes the specified SeiData message. Does not implicitly {@link com.quick.voice.proto.SeiData.verify|verify} messages.
|
|
61
|
+
* @param message SeiData message or plain object to encode
|
|
62
|
+
* @param [writer] Writer to encode to
|
|
63
|
+
* @returns Writer
|
|
64
|
+
*/
|
|
65
|
+
public static encode(message: com.quick.voice.proto.ISeiData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Encodes the specified SeiData message, length delimited. Does not implicitly {@link com.quick.voice.proto.SeiData.verify|verify} messages.
|
|
69
|
+
* @param message SeiData message or plain object to encode
|
|
70
|
+
* @param [writer] Writer to encode to
|
|
71
|
+
* @returns Writer
|
|
72
|
+
*/
|
|
73
|
+
public static encodeDelimited(message: com.quick.voice.proto.ISeiData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Decodes a SeiData message from the specified reader or buffer.
|
|
77
|
+
* @param reader Reader or buffer to decode from
|
|
78
|
+
* @param [length] Message length if known beforehand
|
|
79
|
+
* @returns SeiData
|
|
80
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82
|
+
*/
|
|
83
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.SeiData;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Decodes a SeiData message from the specified reader or buffer, length delimited.
|
|
87
|
+
* @param reader Reader or buffer to decode from
|
|
88
|
+
* @returns SeiData
|
|
89
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
90
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
91
|
+
*/
|
|
92
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.SeiData;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Verifies a SeiData message.
|
|
96
|
+
* @param message Plain object to verify
|
|
97
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
98
|
+
*/
|
|
99
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Creates a SeiData message from a plain object. Also converts values to their respective internal types.
|
|
103
|
+
* @param object Plain object
|
|
104
|
+
* @returns SeiData
|
|
105
|
+
*/
|
|
106
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.SeiData;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Creates a plain object from a SeiData message. Also converts values to other types if specified.
|
|
110
|
+
* @param message SeiData
|
|
111
|
+
* @param [options] Conversion options
|
|
112
|
+
* @returns Plain object
|
|
113
|
+
*/
|
|
114
|
+
public static toObject(message: com.quick.voice.proto.SeiData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Converts this SeiData to JSON.
|
|
118
|
+
* @returns JSON object
|
|
119
|
+
*/
|
|
120
|
+
public toJSON(): { [k: string]: any };
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Gets the default type url for SeiData
|
|
124
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
125
|
+
* @returns The default type url
|
|
126
|
+
*/
|
|
127
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** EventType enum. */
|
|
131
|
+
enum EventType {
|
|
132
|
+
Layout = 0,
|
|
133
|
+
Custom = 1
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** Properties of a LayoutData. */
|
|
137
|
+
interface ILayoutData {
|
|
138
|
+
|
|
139
|
+
/** LayoutData roomId */
|
|
140
|
+
roomId?: (string|null);
|
|
141
|
+
|
|
142
|
+
/** LayoutData type */
|
|
143
|
+
type?: (com.quick.voice.proto.LayoutType|null);
|
|
144
|
+
|
|
145
|
+
/** LayoutData userMap */
|
|
146
|
+
userMap?: ({ [k: string]: com.quick.voice.proto.IUserInfo }|null);
|
|
147
|
+
|
|
148
|
+
/** LayoutData globalCustom */
|
|
149
|
+
globalCustom?: (com.quick.voice.proto.ICustomInfo|null);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Represents a LayoutData. */
|
|
153
|
+
class LayoutData implements ILayoutData {
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Constructs a new LayoutData.
|
|
157
|
+
* @param [properties] Properties to set
|
|
158
|
+
*/
|
|
159
|
+
constructor(properties?: com.quick.voice.proto.ILayoutData);
|
|
160
|
+
|
|
161
|
+
/** LayoutData roomId. */
|
|
162
|
+
public roomId: string;
|
|
163
|
+
|
|
164
|
+
/** LayoutData type. */
|
|
165
|
+
public type: com.quick.voice.proto.LayoutType;
|
|
166
|
+
|
|
167
|
+
/** LayoutData userMap. */
|
|
168
|
+
public userMap: { [k: string]: com.quick.voice.proto.IUserInfo };
|
|
169
|
+
|
|
170
|
+
/** LayoutData globalCustom. */
|
|
171
|
+
public globalCustom?: (com.quick.voice.proto.ICustomInfo|null);
|
|
172
|
+
|
|
173
|
+
/** LayoutData _globalCustom. */
|
|
174
|
+
public _globalCustom?: "globalCustom";
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Creates a new LayoutData instance using the specified properties.
|
|
178
|
+
* @param [properties] Properties to set
|
|
179
|
+
* @returns LayoutData instance
|
|
180
|
+
*/
|
|
181
|
+
public static create(properties?: com.quick.voice.proto.ILayoutData): com.quick.voice.proto.LayoutData;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Encodes the specified LayoutData message. Does not implicitly {@link com.quick.voice.proto.LayoutData.verify|verify} messages.
|
|
185
|
+
* @param message LayoutData message or plain object to encode
|
|
186
|
+
* @param [writer] Writer to encode to
|
|
187
|
+
* @returns Writer
|
|
188
|
+
*/
|
|
189
|
+
public static encode(message: com.quick.voice.proto.ILayoutData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Encodes the specified LayoutData message, length delimited. Does not implicitly {@link com.quick.voice.proto.LayoutData.verify|verify} messages.
|
|
193
|
+
* @param message LayoutData message or plain object to encode
|
|
194
|
+
* @param [writer] Writer to encode to
|
|
195
|
+
* @returns Writer
|
|
196
|
+
*/
|
|
197
|
+
public static encodeDelimited(message: com.quick.voice.proto.ILayoutData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Decodes a LayoutData message from the specified reader or buffer.
|
|
201
|
+
* @param reader Reader or buffer to decode from
|
|
202
|
+
* @param [length] Message length if known beforehand
|
|
203
|
+
* @returns LayoutData
|
|
204
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
205
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
206
|
+
*/
|
|
207
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.LayoutData;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Decodes a LayoutData message from the specified reader or buffer, length delimited.
|
|
211
|
+
* @param reader Reader or buffer to decode from
|
|
212
|
+
* @returns LayoutData
|
|
213
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
214
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
215
|
+
*/
|
|
216
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.LayoutData;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Verifies a LayoutData message.
|
|
220
|
+
* @param message Plain object to verify
|
|
221
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
222
|
+
*/
|
|
223
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Creates a LayoutData message from a plain object. Also converts values to their respective internal types.
|
|
227
|
+
* @param object Plain object
|
|
228
|
+
* @returns LayoutData
|
|
229
|
+
*/
|
|
230
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.LayoutData;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Creates a plain object from a LayoutData message. Also converts values to other types if specified.
|
|
234
|
+
* @param message LayoutData
|
|
235
|
+
* @param [options] Conversion options
|
|
236
|
+
* @returns Plain object
|
|
237
|
+
*/
|
|
238
|
+
public static toObject(message: com.quick.voice.proto.LayoutData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Converts this LayoutData to JSON.
|
|
242
|
+
* @returns JSON object
|
|
243
|
+
*/
|
|
244
|
+
public toJSON(): { [k: string]: any };
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Gets the default type url for LayoutData
|
|
248
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
249
|
+
* @returns The default type url
|
|
250
|
+
*/
|
|
251
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** Properties of a UserInfo. */
|
|
255
|
+
interface IUserInfo {
|
|
256
|
+
|
|
257
|
+
/** UserInfo id */
|
|
258
|
+
id?: (string|null);
|
|
259
|
+
|
|
260
|
+
/** UserInfo audios */
|
|
261
|
+
audios?: (com.quick.voice.proto.IAudioInfo[]|null);
|
|
262
|
+
|
|
263
|
+
/** UserInfo videos */
|
|
264
|
+
videos?: (com.quick.voice.proto.IVideoInfo[]|null);
|
|
265
|
+
|
|
266
|
+
/** UserInfo custom */
|
|
267
|
+
custom?: (com.quick.voice.proto.ICustomInfo|null);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** Represents a UserInfo. */
|
|
271
|
+
class UserInfo implements IUserInfo {
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Constructs a new UserInfo.
|
|
275
|
+
* @param [properties] Properties to set
|
|
276
|
+
*/
|
|
277
|
+
constructor(properties?: com.quick.voice.proto.IUserInfo);
|
|
278
|
+
|
|
279
|
+
/** UserInfo id. */
|
|
280
|
+
public id: string;
|
|
281
|
+
|
|
282
|
+
/** UserInfo audios. */
|
|
283
|
+
public audios: com.quick.voice.proto.IAudioInfo[];
|
|
284
|
+
|
|
285
|
+
/** UserInfo videos. */
|
|
286
|
+
public videos: com.quick.voice.proto.IVideoInfo[];
|
|
287
|
+
|
|
288
|
+
/** UserInfo custom. */
|
|
289
|
+
public custom?: (com.quick.voice.proto.ICustomInfo|null);
|
|
290
|
+
|
|
291
|
+
/** UserInfo _custom. */
|
|
292
|
+
public _custom?: "custom";
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Creates a new UserInfo instance using the specified properties.
|
|
296
|
+
* @param [properties] Properties to set
|
|
297
|
+
* @returns UserInfo instance
|
|
298
|
+
*/
|
|
299
|
+
public static create(properties?: com.quick.voice.proto.IUserInfo): com.quick.voice.proto.UserInfo;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Encodes the specified UserInfo message. Does not implicitly {@link com.quick.voice.proto.UserInfo.verify|verify} messages.
|
|
303
|
+
* @param message UserInfo message or plain object to encode
|
|
304
|
+
* @param [writer] Writer to encode to
|
|
305
|
+
* @returns Writer
|
|
306
|
+
*/
|
|
307
|
+
public static encode(message: com.quick.voice.proto.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Encodes the specified UserInfo message, length delimited. Does not implicitly {@link com.quick.voice.proto.UserInfo.verify|verify} messages.
|
|
311
|
+
* @param message UserInfo message or plain object to encode
|
|
312
|
+
* @param [writer] Writer to encode to
|
|
313
|
+
* @returns Writer
|
|
314
|
+
*/
|
|
315
|
+
public static encodeDelimited(message: com.quick.voice.proto.IUserInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Decodes a UserInfo message from the specified reader or buffer.
|
|
319
|
+
* @param reader Reader or buffer to decode from
|
|
320
|
+
* @param [length] Message length if known beforehand
|
|
321
|
+
* @returns UserInfo
|
|
322
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
323
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324
|
+
*/
|
|
325
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.UserInfo;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Decodes a UserInfo message from the specified reader or buffer, length delimited.
|
|
329
|
+
* @param reader Reader or buffer to decode from
|
|
330
|
+
* @returns UserInfo
|
|
331
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
332
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
333
|
+
*/
|
|
334
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.UserInfo;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Verifies a UserInfo message.
|
|
338
|
+
* @param message Plain object to verify
|
|
339
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
340
|
+
*/
|
|
341
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Creates a UserInfo message from a plain object. Also converts values to their respective internal types.
|
|
345
|
+
* @param object Plain object
|
|
346
|
+
* @returns UserInfo
|
|
347
|
+
*/
|
|
348
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.UserInfo;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Creates a plain object from a UserInfo message. Also converts values to other types if specified.
|
|
352
|
+
* @param message UserInfo
|
|
353
|
+
* @param [options] Conversion options
|
|
354
|
+
* @returns Plain object
|
|
355
|
+
*/
|
|
356
|
+
public static toObject(message: com.quick.voice.proto.UserInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Converts this UserInfo to JSON.
|
|
360
|
+
* @returns JSON object
|
|
361
|
+
*/
|
|
362
|
+
public toJSON(): { [k: string]: any };
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Gets the default type url for UserInfo
|
|
366
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
367
|
+
* @returns The default type url
|
|
368
|
+
*/
|
|
369
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/** Properties of an AudioInfo. */
|
|
373
|
+
interface IAudioInfo {
|
|
374
|
+
|
|
375
|
+
/** AudioInfo type */
|
|
376
|
+
type?: (com.quick.voice.proto.AudioType|null);
|
|
377
|
+
|
|
378
|
+
/** AudioInfo isEnable */
|
|
379
|
+
isEnable?: (boolean|null);
|
|
380
|
+
|
|
381
|
+
/** AudioInfo isMute */
|
|
382
|
+
isMute?: (boolean|null);
|
|
383
|
+
|
|
384
|
+
/** AudioInfo volume */
|
|
385
|
+
volume?: (number|null);
|
|
386
|
+
|
|
387
|
+
/** AudioInfo updateTime */
|
|
388
|
+
updateTime?: (number|Long|null);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/** Represents an AudioInfo. */
|
|
392
|
+
class AudioInfo implements IAudioInfo {
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Constructs a new AudioInfo.
|
|
396
|
+
* @param [properties] Properties to set
|
|
397
|
+
*/
|
|
398
|
+
constructor(properties?: com.quick.voice.proto.IAudioInfo);
|
|
399
|
+
|
|
400
|
+
/** AudioInfo type. */
|
|
401
|
+
public type: com.quick.voice.proto.AudioType;
|
|
402
|
+
|
|
403
|
+
/** AudioInfo isEnable. */
|
|
404
|
+
public isEnable: boolean;
|
|
405
|
+
|
|
406
|
+
/** AudioInfo isMute. */
|
|
407
|
+
public isMute: boolean;
|
|
408
|
+
|
|
409
|
+
/** AudioInfo volume. */
|
|
410
|
+
public volume: number;
|
|
411
|
+
|
|
412
|
+
/** AudioInfo updateTime. */
|
|
413
|
+
public updateTime?: (number|Long|null);
|
|
414
|
+
|
|
415
|
+
/** AudioInfo _updateTime. */
|
|
416
|
+
public _updateTime?: "updateTime";
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Creates a new AudioInfo instance using the specified properties.
|
|
420
|
+
* @param [properties] Properties to set
|
|
421
|
+
* @returns AudioInfo instance
|
|
422
|
+
*/
|
|
423
|
+
public static create(properties?: com.quick.voice.proto.IAudioInfo): com.quick.voice.proto.AudioInfo;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Encodes the specified AudioInfo message. Does not implicitly {@link com.quick.voice.proto.AudioInfo.verify|verify} messages.
|
|
427
|
+
* @param message AudioInfo message or plain object to encode
|
|
428
|
+
* @param [writer] Writer to encode to
|
|
429
|
+
* @returns Writer
|
|
430
|
+
*/
|
|
431
|
+
public static encode(message: com.quick.voice.proto.IAudioInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Encodes the specified AudioInfo message, length delimited. Does not implicitly {@link com.quick.voice.proto.AudioInfo.verify|verify} messages.
|
|
435
|
+
* @param message AudioInfo message or plain object to encode
|
|
436
|
+
* @param [writer] Writer to encode to
|
|
437
|
+
* @returns Writer
|
|
438
|
+
*/
|
|
439
|
+
public static encodeDelimited(message: com.quick.voice.proto.IAudioInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Decodes an AudioInfo message from the specified reader or buffer.
|
|
443
|
+
* @param reader Reader or buffer to decode from
|
|
444
|
+
* @param [length] Message length if known beforehand
|
|
445
|
+
* @returns AudioInfo
|
|
446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
448
|
+
*/
|
|
449
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.AudioInfo;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Decodes an AudioInfo message from the specified reader or buffer, length delimited.
|
|
453
|
+
* @param reader Reader or buffer to decode from
|
|
454
|
+
* @returns AudioInfo
|
|
455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
457
|
+
*/
|
|
458
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.AudioInfo;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Verifies an AudioInfo message.
|
|
462
|
+
* @param message Plain object to verify
|
|
463
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
464
|
+
*/
|
|
465
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Creates an AudioInfo message from a plain object. Also converts values to their respective internal types.
|
|
469
|
+
* @param object Plain object
|
|
470
|
+
* @returns AudioInfo
|
|
471
|
+
*/
|
|
472
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.AudioInfo;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Creates a plain object from an AudioInfo message. Also converts values to other types if specified.
|
|
476
|
+
* @param message AudioInfo
|
|
477
|
+
* @param [options] Conversion options
|
|
478
|
+
* @returns Plain object
|
|
479
|
+
*/
|
|
480
|
+
public static toObject(message: com.quick.voice.proto.AudioInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Converts this AudioInfo to JSON.
|
|
484
|
+
* @returns JSON object
|
|
485
|
+
*/
|
|
486
|
+
public toJSON(): { [k: string]: any };
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Gets the default type url for AudioInfo
|
|
490
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
491
|
+
* @returns The default type url
|
|
492
|
+
*/
|
|
493
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/** Properties of a VideoInfo. */
|
|
497
|
+
interface IVideoInfo {
|
|
498
|
+
|
|
499
|
+
/** VideoInfo type */
|
|
500
|
+
type?: (com.quick.voice.proto.VideoType|null);
|
|
501
|
+
|
|
502
|
+
/** VideoInfo isEnable */
|
|
503
|
+
isEnable?: (boolean|null);
|
|
504
|
+
|
|
505
|
+
/** VideoInfo isMute */
|
|
506
|
+
isMute?: (boolean|null);
|
|
507
|
+
|
|
508
|
+
/** VideoInfo width */
|
|
509
|
+
width?: (number|null);
|
|
510
|
+
|
|
511
|
+
/** VideoInfo height */
|
|
512
|
+
height?: (number|null);
|
|
513
|
+
|
|
514
|
+
/** VideoInfo x */
|
|
515
|
+
x?: (number|null);
|
|
516
|
+
|
|
517
|
+
/** VideoInfo y */
|
|
518
|
+
y?: (number|null);
|
|
519
|
+
|
|
520
|
+
/** VideoInfo updateTime */
|
|
521
|
+
updateTime?: (number|Long|null);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/** Represents a VideoInfo. */
|
|
525
|
+
class VideoInfo implements IVideoInfo {
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Constructs a new VideoInfo.
|
|
529
|
+
* @param [properties] Properties to set
|
|
530
|
+
*/
|
|
531
|
+
constructor(properties?: com.quick.voice.proto.IVideoInfo);
|
|
532
|
+
|
|
533
|
+
/** VideoInfo type. */
|
|
534
|
+
public type: com.quick.voice.proto.VideoType;
|
|
535
|
+
|
|
536
|
+
/** VideoInfo isEnable. */
|
|
537
|
+
public isEnable: boolean;
|
|
538
|
+
|
|
539
|
+
/** VideoInfo isMute. */
|
|
540
|
+
public isMute: boolean;
|
|
541
|
+
|
|
542
|
+
/** VideoInfo width. */
|
|
543
|
+
public width: number;
|
|
544
|
+
|
|
545
|
+
/** VideoInfo height. */
|
|
546
|
+
public height: number;
|
|
547
|
+
|
|
548
|
+
/** VideoInfo x. */
|
|
549
|
+
public x: number;
|
|
550
|
+
|
|
551
|
+
/** VideoInfo y. */
|
|
552
|
+
public y: number;
|
|
553
|
+
|
|
554
|
+
/** VideoInfo updateTime. */
|
|
555
|
+
public updateTime?: (number|Long|null);
|
|
556
|
+
|
|
557
|
+
/** VideoInfo _updateTime. */
|
|
558
|
+
public _updateTime?: "updateTime";
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Creates a new VideoInfo instance using the specified properties.
|
|
562
|
+
* @param [properties] Properties to set
|
|
563
|
+
* @returns VideoInfo instance
|
|
564
|
+
*/
|
|
565
|
+
public static create(properties?: com.quick.voice.proto.IVideoInfo): com.quick.voice.proto.VideoInfo;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Encodes the specified VideoInfo message. Does not implicitly {@link com.quick.voice.proto.VideoInfo.verify|verify} messages.
|
|
569
|
+
* @param message VideoInfo message or plain object to encode
|
|
570
|
+
* @param [writer] Writer to encode to
|
|
571
|
+
* @returns Writer
|
|
572
|
+
*/
|
|
573
|
+
public static encode(message: com.quick.voice.proto.IVideoInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Encodes the specified VideoInfo message, length delimited. Does not implicitly {@link com.quick.voice.proto.VideoInfo.verify|verify} messages.
|
|
577
|
+
* @param message VideoInfo message or plain object to encode
|
|
578
|
+
* @param [writer] Writer to encode to
|
|
579
|
+
* @returns Writer
|
|
580
|
+
*/
|
|
581
|
+
public static encodeDelimited(message: com.quick.voice.proto.IVideoInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Decodes a VideoInfo message from the specified reader or buffer.
|
|
585
|
+
* @param reader Reader or buffer to decode from
|
|
586
|
+
* @param [length] Message length if known beforehand
|
|
587
|
+
* @returns VideoInfo
|
|
588
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
589
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
590
|
+
*/
|
|
591
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.VideoInfo;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Decodes a VideoInfo message from the specified reader or buffer, length delimited.
|
|
595
|
+
* @param reader Reader or buffer to decode from
|
|
596
|
+
* @returns VideoInfo
|
|
597
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
598
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
599
|
+
*/
|
|
600
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.VideoInfo;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Verifies a VideoInfo message.
|
|
604
|
+
* @param message Plain object to verify
|
|
605
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
606
|
+
*/
|
|
607
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Creates a VideoInfo message from a plain object. Also converts values to their respective internal types.
|
|
611
|
+
* @param object Plain object
|
|
612
|
+
* @returns VideoInfo
|
|
613
|
+
*/
|
|
614
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.VideoInfo;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Creates a plain object from a VideoInfo message. Also converts values to other types if specified.
|
|
618
|
+
* @param message VideoInfo
|
|
619
|
+
* @param [options] Conversion options
|
|
620
|
+
* @returns Plain object
|
|
621
|
+
*/
|
|
622
|
+
public static toObject(message: com.quick.voice.proto.VideoInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Converts this VideoInfo to JSON.
|
|
626
|
+
* @returns JSON object
|
|
627
|
+
*/
|
|
628
|
+
public toJSON(): { [k: string]: any };
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Gets the default type url for VideoInfo
|
|
632
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
633
|
+
* @returns The default type url
|
|
634
|
+
*/
|
|
635
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/** Properties of a CustomInfo. */
|
|
639
|
+
interface ICustomInfo {
|
|
640
|
+
|
|
641
|
+
/** CustomInfo roomId */
|
|
642
|
+
roomId?: (string|null);
|
|
643
|
+
|
|
644
|
+
/** CustomInfo customKeyMap */
|
|
645
|
+
customKeyMap?: ({ [k: string]: string }|null);
|
|
646
|
+
|
|
647
|
+
/** CustomInfo updateTime */
|
|
648
|
+
updateTime?: (number|Long|null);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/** Represents a CustomInfo. */
|
|
652
|
+
class CustomInfo implements ICustomInfo {
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Constructs a new CustomInfo.
|
|
656
|
+
* @param [properties] Properties to set
|
|
657
|
+
*/
|
|
658
|
+
constructor(properties?: com.quick.voice.proto.ICustomInfo);
|
|
659
|
+
|
|
660
|
+
/** CustomInfo roomId. */
|
|
661
|
+
public roomId: string;
|
|
662
|
+
|
|
663
|
+
/** CustomInfo customKeyMap. */
|
|
664
|
+
public customKeyMap: { [k: string]: string };
|
|
665
|
+
|
|
666
|
+
/** CustomInfo updateTime. */
|
|
667
|
+
public updateTime?: (number|Long|null);
|
|
668
|
+
|
|
669
|
+
/** CustomInfo _updateTime. */
|
|
670
|
+
public _updateTime?: "updateTime";
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Creates a new CustomInfo instance using the specified properties.
|
|
674
|
+
* @param [properties] Properties to set
|
|
675
|
+
* @returns CustomInfo instance
|
|
676
|
+
*/
|
|
677
|
+
public static create(properties?: com.quick.voice.proto.ICustomInfo): com.quick.voice.proto.CustomInfo;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Encodes the specified CustomInfo message. Does not implicitly {@link com.quick.voice.proto.CustomInfo.verify|verify} messages.
|
|
681
|
+
* @param message CustomInfo message or plain object to encode
|
|
682
|
+
* @param [writer] Writer to encode to
|
|
683
|
+
* @returns Writer
|
|
684
|
+
*/
|
|
685
|
+
public static encode(message: com.quick.voice.proto.ICustomInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Encodes the specified CustomInfo message, length delimited. Does not implicitly {@link com.quick.voice.proto.CustomInfo.verify|verify} messages.
|
|
689
|
+
* @param message CustomInfo message or plain object to encode
|
|
690
|
+
* @param [writer] Writer to encode to
|
|
691
|
+
* @returns Writer
|
|
692
|
+
*/
|
|
693
|
+
public static encodeDelimited(message: com.quick.voice.proto.ICustomInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Decodes a CustomInfo message from the specified reader or buffer.
|
|
697
|
+
* @param reader Reader or buffer to decode from
|
|
698
|
+
* @param [length] Message length if known beforehand
|
|
699
|
+
* @returns CustomInfo
|
|
700
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
701
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
702
|
+
*/
|
|
703
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.CustomInfo;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Decodes a CustomInfo message from the specified reader or buffer, length delimited.
|
|
707
|
+
* @param reader Reader or buffer to decode from
|
|
708
|
+
* @returns CustomInfo
|
|
709
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
710
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
711
|
+
*/
|
|
712
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.CustomInfo;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Verifies a CustomInfo message.
|
|
716
|
+
* @param message Plain object to verify
|
|
717
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
718
|
+
*/
|
|
719
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Creates a CustomInfo message from a plain object. Also converts values to their respective internal types.
|
|
723
|
+
* @param object Plain object
|
|
724
|
+
* @returns CustomInfo
|
|
725
|
+
*/
|
|
726
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.CustomInfo;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Creates a plain object from a CustomInfo message. Also converts values to other types if specified.
|
|
730
|
+
* @param message CustomInfo
|
|
731
|
+
* @param [options] Conversion options
|
|
732
|
+
* @returns Plain object
|
|
733
|
+
*/
|
|
734
|
+
public static toObject(message: com.quick.voice.proto.CustomInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Converts this CustomInfo to JSON.
|
|
738
|
+
* @returns JSON object
|
|
739
|
+
*/
|
|
740
|
+
public toJSON(): { [k: string]: any };
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Gets the default type url for CustomInfo
|
|
744
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
745
|
+
* @returns The default type url
|
|
746
|
+
*/
|
|
747
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/** LayoutType enum. */
|
|
751
|
+
enum LayoutType {
|
|
752
|
+
AudioAndVideo = 0,
|
|
753
|
+
OnlyAudio = 1,
|
|
754
|
+
OnlyVideo = 2
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** AudioType enum. */
|
|
758
|
+
enum AudioType {
|
|
759
|
+
Microphone = 0,
|
|
760
|
+
SystemVoice = 1
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/** VideoType enum. */
|
|
764
|
+
enum VideoType {
|
|
765
|
+
Camera = 0,
|
|
766
|
+
Screen = 1
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|