quickvo-player 0.3.5 → 0.3.6
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/dist/QuickVoPlayer.d.ts +2 -2
- package/dist/RoomUser.d.ts +2 -2
- package/dist/index.js +4817 -2681
- package/dist/index.umd.cjs +5 -4
- package/dist/protos/gen/CdnData_pb.d.ts +270 -0
- package/dist/protos/index.d.ts +1 -1
- package/package.json +11 -7
- package/dist/protos/compiled.d.ts +0 -771
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { GenEnum, GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2';
|
|
2
|
+
import { Message } from '@bufbuild/protobuf';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file CdnData.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_CdnData: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* 请求
|
|
9
|
+
*
|
|
10
|
+
* @generated from message com.quick.voice.proto.SeiData
|
|
11
|
+
*/
|
|
12
|
+
export type SeiData = Message<"com.quick.voice.proto.SeiData"> & {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: com.quick.voice.proto.EventType event = 1;
|
|
15
|
+
*/
|
|
16
|
+
event: EventType;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: bytes data = 2;
|
|
19
|
+
*/
|
|
20
|
+
data: Uint8Array;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: bool compress = 3;
|
|
23
|
+
*/
|
|
24
|
+
compress: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: int32 version = 4;
|
|
27
|
+
*/
|
|
28
|
+
version: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message com.quick.voice.proto.SeiData.
|
|
32
|
+
* Use `create(SeiDataSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SeiDataSchema: GenMessage<SeiData>;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message com.quick.voice.proto.LayoutData
|
|
37
|
+
*/
|
|
38
|
+
export type LayoutData = Message<"com.quick.voice.proto.LayoutData"> & {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string roomId = 1;
|
|
41
|
+
*/
|
|
42
|
+
roomId: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: com.quick.voice.proto.LayoutType type = 2;
|
|
45
|
+
*/
|
|
46
|
+
type: LayoutType;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: map<string, com.quick.voice.proto.UserInfo> userMap = 3;
|
|
49
|
+
*/
|
|
50
|
+
userMap: {
|
|
51
|
+
[key: string]: UserInfo;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: optional com.quick.voice.proto.CustomInfo globalCustom = 4;
|
|
55
|
+
*/
|
|
56
|
+
globalCustom?: CustomInfo;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message com.quick.voice.proto.LayoutData.
|
|
60
|
+
* Use `create(LayoutDataSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const LayoutDataSchema: GenMessage<LayoutData>;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from message com.quick.voice.proto.UserInfo
|
|
65
|
+
*/
|
|
66
|
+
export type UserInfo = Message<"com.quick.voice.proto.UserInfo"> & {
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: string id = 1;
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: repeated com.quick.voice.proto.AudioInfo audios = 2;
|
|
73
|
+
*/
|
|
74
|
+
audios: AudioInfo[];
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: repeated com.quick.voice.proto.VideoInfo videos = 3;
|
|
77
|
+
*/
|
|
78
|
+
videos: VideoInfo[];
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: optional com.quick.voice.proto.CustomInfo custom = 4;
|
|
81
|
+
*/
|
|
82
|
+
custom?: CustomInfo;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message com.quick.voice.proto.UserInfo.
|
|
86
|
+
* Use `create(UserInfoSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export declare const UserInfoSchema: GenMessage<UserInfo>;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from message com.quick.voice.proto.AudioInfo
|
|
91
|
+
*/
|
|
92
|
+
export type AudioInfo = Message<"com.quick.voice.proto.AudioInfo"> & {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: com.quick.voice.proto.AudioType type = 1;
|
|
95
|
+
*/
|
|
96
|
+
type: AudioType;
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: bool isEnable = 2;
|
|
99
|
+
*/
|
|
100
|
+
isEnable: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: bool isMute = 3;
|
|
103
|
+
*/
|
|
104
|
+
isMute: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: double volume = 4;
|
|
107
|
+
*/
|
|
108
|
+
volume: number;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: optional int64 updateTime = 5;
|
|
111
|
+
*/
|
|
112
|
+
updateTime?: bigint;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message com.quick.voice.proto.AudioInfo.
|
|
116
|
+
* Use `create(AudioInfoSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export declare const AudioInfoSchema: GenMessage<AudioInfo>;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from message com.quick.voice.proto.VideoInfo
|
|
121
|
+
*/
|
|
122
|
+
export type VideoInfo = Message<"com.quick.voice.proto.VideoInfo"> & {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: com.quick.voice.proto.VideoType type = 1;
|
|
125
|
+
*/
|
|
126
|
+
type: VideoType;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: bool isEnable = 2;
|
|
129
|
+
*/
|
|
130
|
+
isEnable: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: bool isMute = 3;
|
|
133
|
+
*/
|
|
134
|
+
isMute: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: int32 width = 4;
|
|
137
|
+
*/
|
|
138
|
+
width: number;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: int32 height = 5;
|
|
141
|
+
*/
|
|
142
|
+
height: number;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: int32 x = 6;
|
|
145
|
+
*/
|
|
146
|
+
x: number;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: int32 y = 7;
|
|
149
|
+
*/
|
|
150
|
+
y: number;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: optional int64 updateTime = 8;
|
|
153
|
+
*/
|
|
154
|
+
updateTime?: bigint;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Describes the message com.quick.voice.proto.VideoInfo.
|
|
158
|
+
* Use `create(VideoInfoSchema)` to create a new message.
|
|
159
|
+
*/
|
|
160
|
+
export declare const VideoInfoSchema: GenMessage<VideoInfo>;
|
|
161
|
+
/**
|
|
162
|
+
* @generated from message com.quick.voice.proto.CustomInfo
|
|
163
|
+
*/
|
|
164
|
+
export type CustomInfo = Message<"com.quick.voice.proto.CustomInfo"> & {
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string roomId = 1;
|
|
167
|
+
*/
|
|
168
|
+
roomId: string;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: map<string, string> customKeyMap = 2;
|
|
171
|
+
*/
|
|
172
|
+
customKeyMap: {
|
|
173
|
+
[key: string]: string;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: optional int64 updateTime = 3;
|
|
177
|
+
*/
|
|
178
|
+
updateTime?: bigint;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Describes the message com.quick.voice.proto.CustomInfo.
|
|
182
|
+
* Use `create(CustomInfoSchema)` to create a new message.
|
|
183
|
+
*/
|
|
184
|
+
export declare const CustomInfoSchema: GenMessage<CustomInfo>;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from enum com.quick.voice.proto.EventType
|
|
187
|
+
*/
|
|
188
|
+
export declare enum EventType {
|
|
189
|
+
/**
|
|
190
|
+
* 布局事件
|
|
191
|
+
*
|
|
192
|
+
* @generated from enum value: Layout = 0;
|
|
193
|
+
*/
|
|
194
|
+
Layout = 0,
|
|
195
|
+
/**
|
|
196
|
+
* 自定义数据事件
|
|
197
|
+
*
|
|
198
|
+
* @generated from enum value: Custom = 1;
|
|
199
|
+
*/
|
|
200
|
+
Custom = 1
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Describes the enum com.quick.voice.proto.EventType.
|
|
204
|
+
*/
|
|
205
|
+
export declare const EventTypeSchema: GenEnum<EventType>;
|
|
206
|
+
/**
|
|
207
|
+
* CDN布局类型
|
|
208
|
+
*
|
|
209
|
+
* @generated from enum com.quick.voice.proto.LayoutType
|
|
210
|
+
*/
|
|
211
|
+
export declare enum LayoutType {
|
|
212
|
+
/**
|
|
213
|
+
* @generated from enum value: AudioAndVideo = 0;
|
|
214
|
+
*/
|
|
215
|
+
AudioAndVideo = 0,
|
|
216
|
+
/**
|
|
217
|
+
* @generated from enum value: OnlyAudio = 1;
|
|
218
|
+
*/
|
|
219
|
+
OnlyAudio = 1,
|
|
220
|
+
/**
|
|
221
|
+
* @generated from enum value: OnlyVideo = 2;
|
|
222
|
+
*/
|
|
223
|
+
OnlyVideo = 2
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Describes the enum com.quick.voice.proto.LayoutType.
|
|
227
|
+
*/
|
|
228
|
+
export declare const LayoutTypeSchema: GenEnum<LayoutType>;
|
|
229
|
+
/**
|
|
230
|
+
* @generated from enum com.quick.voice.proto.AudioType
|
|
231
|
+
*/
|
|
232
|
+
export declare enum AudioType {
|
|
233
|
+
/**
|
|
234
|
+
* 麦克风
|
|
235
|
+
*
|
|
236
|
+
* @generated from enum value: Microphone = 0;
|
|
237
|
+
*/
|
|
238
|
+
Microphone = 0,
|
|
239
|
+
/**
|
|
240
|
+
* 系统声音
|
|
241
|
+
*
|
|
242
|
+
* @generated from enum value: SystemVoice = 1;
|
|
243
|
+
*/
|
|
244
|
+
SystemVoice = 1
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Describes the enum com.quick.voice.proto.AudioType.
|
|
248
|
+
*/
|
|
249
|
+
export declare const AudioTypeSchema: GenEnum<AudioType>;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from enum com.quick.voice.proto.VideoType
|
|
252
|
+
*/
|
|
253
|
+
export declare enum VideoType {
|
|
254
|
+
/**
|
|
255
|
+
* 摄像头
|
|
256
|
+
*
|
|
257
|
+
* @generated from enum value: Camera = 0;
|
|
258
|
+
*/
|
|
259
|
+
Camera = 0,
|
|
260
|
+
/**
|
|
261
|
+
* 屏幕
|
|
262
|
+
*
|
|
263
|
+
* @generated from enum value: Screen = 1;
|
|
264
|
+
*/
|
|
265
|
+
Screen = 1
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Describes the enum com.quick.voice.proto.VideoType.
|
|
269
|
+
*/
|
|
270
|
+
export declare const VideoTypeSchema: GenEnum<VideoType>;
|
package/dist/protos/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './gen/CdnData_pb';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickvo-player",
|
|
3
3
|
"description": "基于web-codecs解码flv视频流并输出帧数据。",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -16,16 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "tsc && vite build"
|
|
19
|
+
"build": "tsc && vite build",
|
|
20
|
+
"proto:generate": "buf generate"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"
|
|
23
|
-
"pr-
|
|
24
|
-
"
|
|
23
|
+
"@bufbuild/protobuf": "^2.11.0",
|
|
24
|
+
"pr-player": "0.3.6",
|
|
25
|
+
"pr-ws": "^0.3.3"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
28
|
+
"@bufbuild/buf": "^1.66.1",
|
|
29
|
+
"@bufbuild/protoc-gen-es": "^2.11.0",
|
|
30
|
+
"@types/node": "^22.13.0",
|
|
31
|
+
"typescript": "~5.9.0",
|
|
32
|
+
"vite": "^8.0.2",
|
|
29
33
|
"vite-plugin-dts": "^4.5.4"
|
|
30
34
|
},
|
|
31
35
|
"private": false,
|