@hysc/meeting 5.0.114 → 5.0.116
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/esm/boom-meeting/src/BMRoom/BMRoom.d.ts +3 -0
- package/esm/boom-meeting/src/BMStream/BMStreamModel.d.ts +23 -10
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -11
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/src/BMRoom/BMRoom.d.ts +3 -0
- package/esm/src/BMStream/BMStreamModel.d.ts +23 -10
- package/esm/src/BMStream/BMStreamModelVM.d.ts +0 -11
- package/package.json +6 -6
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +3 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +23 -10
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -11
- package/umd/index.js +1 -1
|
@@ -20,6 +20,7 @@ interface MediaPermission {
|
|
|
20
20
|
camera: boolean;
|
|
21
21
|
screen: boolean;
|
|
22
22
|
}
|
|
23
|
+
export declare type VoiceMode = 'speech' | 'speech-recognition' | 'music' | '';
|
|
23
24
|
export declare let _selfSortType: number;
|
|
24
25
|
export declare let autoPlayAudio: boolean;
|
|
25
26
|
export default class BMRoom {
|
|
@@ -78,6 +79,8 @@ export default class BMRoom {
|
|
|
78
79
|
mediaPermission: MediaPermission;
|
|
79
80
|
videoProfile: VideoProfile;
|
|
80
81
|
audioProfile: AudioProfileInfo | null;
|
|
82
|
+
voiceMode: string;
|
|
83
|
+
setVoiceMode(mode: VoiceMode): void;
|
|
81
84
|
/**
|
|
82
85
|
* brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
|
|
83
86
|
*/
|
|
@@ -25,6 +25,14 @@ export interface NoPlayerContainer {
|
|
|
25
25
|
container: 'small' | 'big';
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* 播放器状态
|
|
30
|
+
*/
|
|
31
|
+
declare enum PlayerState {
|
|
32
|
+
NO_CONTAINER = 0,
|
|
33
|
+
NO_PLAYING = 1,
|
|
34
|
+
PLAYING = 2
|
|
35
|
+
}
|
|
28
36
|
export default class BMStreamModel {
|
|
29
37
|
private user;
|
|
30
38
|
private _stream;
|
|
@@ -185,6 +193,8 @@ export default class BMStreamModel {
|
|
|
185
193
|
* 当前视频是否开启
|
|
186
194
|
*/
|
|
187
195
|
get videoEnable(): boolean;
|
|
196
|
+
private get brtcPlayerId();
|
|
197
|
+
private get selfPlayerId();
|
|
188
198
|
/**
|
|
189
199
|
* 获取当前流绑定的用户昵称
|
|
190
200
|
*/
|
|
@@ -213,21 +223,19 @@ export default class BMStreamModel {
|
|
|
213
223
|
emitBindElement: import("lodash-es").DebouncedFunc<() => void>;
|
|
214
224
|
emitBindBigElement: import("lodash-es").DebouncedFunc<() => void>;
|
|
215
225
|
/**
|
|
216
|
-
*
|
|
226
|
+
* 当前是不是正在播放
|
|
227
|
+
* @param containerId sdk绑定播放器容器id
|
|
228
|
+
* @param playerContainerId 播放器创建的容器id
|
|
217
229
|
*/
|
|
218
|
-
currentIsPlaying: () =>
|
|
219
|
-
/**
|
|
220
|
-
* 判断当前是不是正在小窗口播放
|
|
221
|
-
*/
|
|
222
|
-
currentBigIsPlaying: () => boolean | null | undefined;
|
|
230
|
+
currentIsPlaying: (containerId: string) => PlayerState;
|
|
223
231
|
/**
|
|
224
232
|
* 播放当前流
|
|
225
233
|
*/
|
|
226
|
-
play:
|
|
234
|
+
play: () => Promise<void>;
|
|
227
235
|
/**
|
|
228
236
|
* 在大窗口播放该流的时候调用这个方法
|
|
229
237
|
*/
|
|
230
|
-
playInBig:
|
|
238
|
+
playInBig: () => Promise<void>;
|
|
231
239
|
private initBigPlayer;
|
|
232
240
|
/**
|
|
233
241
|
* 停止播放当前流
|
|
@@ -275,7 +283,7 @@ export default class BMStreamModel {
|
|
|
275
283
|
collectAudioLevel: () => void;
|
|
276
284
|
private handleAudioLevel;
|
|
277
285
|
checkSmallVideo(): void;
|
|
278
|
-
checkBigVideo()
|
|
286
|
+
checkBigVideo: import("lodash-es").DebouncedFunc<() => void>;
|
|
279
287
|
/**
|
|
280
288
|
* 播放黑窗处理,主要是做一个容错处理,又可能这股流拉下来或者存在订阅就出现问题的情况
|
|
281
289
|
* 播放时黑窗的,这个时候需要,检测,然后重新拉流
|
|
@@ -287,6 +295,11 @@ export default class BMStreamModel {
|
|
|
287
295
|
*/
|
|
288
296
|
subscribeStream(): void;
|
|
289
297
|
unSubscribeStream(): void;
|
|
290
|
-
checkStreamIsPlaying()
|
|
298
|
+
checkStreamIsPlaying: import("lodash-es").DebouncedFunc<() => void>;
|
|
299
|
+
/**
|
|
300
|
+
* 取消流的播放
|
|
301
|
+
* @param type big: 大窗口 small: 小窗口 all: 全部
|
|
302
|
+
*/
|
|
303
|
+
unAttach(type: 'big' | 'small' | 'all'): void;
|
|
291
304
|
}
|
|
292
305
|
export {};
|
|
@@ -190,17 +190,6 @@ export default class BMStreamModelVM {
|
|
|
190
190
|
* @private
|
|
191
191
|
*/
|
|
192
192
|
private muteOrUnpublishStream;
|
|
193
|
-
/**
|
|
194
|
-
* 是否开启屏幕共享
|
|
195
|
-
* @param enable
|
|
196
|
-
* @param opts 开启屏幕共享参数
|
|
197
|
-
* @param customShare
|
|
198
|
-
* @param opts.audio 是否开启音频
|
|
199
|
-
* @param opts.source_name Electron 下窗口名称
|
|
200
|
-
* @param opts.width 共享屏幕宽度
|
|
201
|
-
* @param opts.height 共享屏幕高度
|
|
202
|
-
* @param opts.contentHint 视频的contentHint 可选值: '' | 'motion' | 'detail' | 'text'
|
|
203
|
-
*/
|
|
204
193
|
toggleShareScreen(enable: boolean, opts: any, customShare?: Result): Promise<boolean>;
|
|
205
194
|
setShareScreenContentHint(contentHint: '' | 'motion' | 'detail' | 'text'): void;
|
|
206
195
|
updateModelSort: import("lodash-es").DebouncedFunc<() => void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.116",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"@hysc/p-queue": "6.3.0",
|
|
20
20
|
"rxjs": "^7.5.5",
|
|
21
21
|
"typescript": "^4.6.3",
|
|
22
|
-
"@hysc/bloud": "1.0.
|
|
23
|
-
"@hysc/core": "5.0.
|
|
24
|
-
"@hysc/
|
|
25
|
-
"@hysc/
|
|
22
|
+
"@hysc/bloud": "1.0.114",
|
|
23
|
+
"@hysc/core": "5.0.114",
|
|
24
|
+
"@hysc/logger": "1.0.0",
|
|
25
|
+
"@hysc/utils": "1.2.4"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@hysc/core": "5.0.
|
|
28
|
+
"@hysc/core": "5.0.114"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/lodash-es": "^4.17.6"
|
|
@@ -20,6 +20,7 @@ interface MediaPermission {
|
|
|
20
20
|
camera: boolean;
|
|
21
21
|
screen: boolean;
|
|
22
22
|
}
|
|
23
|
+
export declare type VoiceMode = 'speech' | 'speech-recognition' | 'music' | '';
|
|
23
24
|
export declare let _selfSortType: number;
|
|
24
25
|
export declare let autoPlayAudio: boolean;
|
|
25
26
|
export default class BMRoom {
|
|
@@ -78,6 +79,8 @@ export default class BMRoom {
|
|
|
78
79
|
mediaPermission: MediaPermission;
|
|
79
80
|
videoProfile: VideoProfile;
|
|
80
81
|
audioProfile: AudioProfileInfo | null;
|
|
82
|
+
voiceMode: string;
|
|
83
|
+
setVoiceMode(mode: VoiceMode): void;
|
|
81
84
|
/**
|
|
82
85
|
* brtc断网重连要给端上事件响应,所有端上把流单独做处理的,需要在收到这个事件之后,重新处理所有的effect
|
|
83
86
|
*/
|
|
@@ -25,6 +25,14 @@ export interface NoPlayerContainer {
|
|
|
25
25
|
container: 'small' | 'big';
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* 播放器状态
|
|
30
|
+
*/
|
|
31
|
+
declare enum PlayerState {
|
|
32
|
+
NO_CONTAINER = 0,
|
|
33
|
+
NO_PLAYING = 1,
|
|
34
|
+
PLAYING = 2
|
|
35
|
+
}
|
|
28
36
|
export default class BMStreamModel {
|
|
29
37
|
private user;
|
|
30
38
|
private _stream;
|
|
@@ -185,6 +193,8 @@ export default class BMStreamModel {
|
|
|
185
193
|
* 当前视频是否开启
|
|
186
194
|
*/
|
|
187
195
|
get videoEnable(): boolean;
|
|
196
|
+
private get brtcPlayerId();
|
|
197
|
+
private get selfPlayerId();
|
|
188
198
|
/**
|
|
189
199
|
* 获取当前流绑定的用户昵称
|
|
190
200
|
*/
|
|
@@ -213,21 +223,19 @@ export default class BMStreamModel {
|
|
|
213
223
|
emitBindElement: any;
|
|
214
224
|
emitBindBigElement: any;
|
|
215
225
|
/**
|
|
216
|
-
*
|
|
226
|
+
* 当前是不是正在播放
|
|
227
|
+
* @param containerId sdk绑定播放器容器id
|
|
228
|
+
* @param playerContainerId 播放器创建的容器id
|
|
217
229
|
*/
|
|
218
|
-
currentIsPlaying: () =>
|
|
219
|
-
/**
|
|
220
|
-
* 判断当前是不是正在小窗口播放
|
|
221
|
-
*/
|
|
222
|
-
currentBigIsPlaying: () => boolean | null | undefined;
|
|
230
|
+
currentIsPlaying: (containerId: string) => PlayerState;
|
|
223
231
|
/**
|
|
224
232
|
* 播放当前流
|
|
225
233
|
*/
|
|
226
|
-
play:
|
|
234
|
+
play: () => Promise<void>;
|
|
227
235
|
/**
|
|
228
236
|
* 在大窗口播放该流的时候调用这个方法
|
|
229
237
|
*/
|
|
230
|
-
playInBig:
|
|
238
|
+
playInBig: () => Promise<void>;
|
|
231
239
|
private initBigPlayer;
|
|
232
240
|
/**
|
|
233
241
|
* 停止播放当前流
|
|
@@ -275,7 +283,7 @@ export default class BMStreamModel {
|
|
|
275
283
|
collectAudioLevel: () => void;
|
|
276
284
|
private handleAudioLevel;
|
|
277
285
|
checkSmallVideo(): void;
|
|
278
|
-
checkBigVideo
|
|
286
|
+
checkBigVideo: any;
|
|
279
287
|
/**
|
|
280
288
|
* 播放黑窗处理,主要是做一个容错处理,又可能这股流拉下来或者存在订阅就出现问题的情况
|
|
281
289
|
* 播放时黑窗的,这个时候需要,检测,然后重新拉流
|
|
@@ -287,6 +295,11 @@ export default class BMStreamModel {
|
|
|
287
295
|
*/
|
|
288
296
|
subscribeStream(): void;
|
|
289
297
|
unSubscribeStream(): void;
|
|
290
|
-
checkStreamIsPlaying
|
|
298
|
+
checkStreamIsPlaying: any;
|
|
299
|
+
/**
|
|
300
|
+
* 取消流的播放
|
|
301
|
+
* @param type big: 大窗口 small: 小窗口 all: 全部
|
|
302
|
+
*/
|
|
303
|
+
unAttach(type: 'big' | 'small' | 'all'): void;
|
|
291
304
|
}
|
|
292
305
|
export {};
|
|
@@ -190,17 +190,6 @@ export default class BMStreamModelVM {
|
|
|
190
190
|
* @private
|
|
191
191
|
*/
|
|
192
192
|
private muteOrUnpublishStream;
|
|
193
|
-
/**
|
|
194
|
-
* 是否开启屏幕共享
|
|
195
|
-
* @param enable
|
|
196
|
-
* @param opts 开启屏幕共享参数
|
|
197
|
-
* @param customShare
|
|
198
|
-
* @param opts.audio 是否开启音频
|
|
199
|
-
* @param opts.source_name Electron 下窗口名称
|
|
200
|
-
* @param opts.width 共享屏幕宽度
|
|
201
|
-
* @param opts.height 共享屏幕高度
|
|
202
|
-
* @param opts.contentHint 视频的contentHint 可选值: '' | 'motion' | 'detail' | 'text'
|
|
203
|
-
*/
|
|
204
193
|
toggleShareScreen(enable: boolean, opts: any, customShare?: Result): Promise<boolean>;
|
|
205
194
|
setShareScreenContentHint(contentHint: '' | 'motion' | 'detail' | 'text'): void;
|
|
206
195
|
updateModelSort: any;
|