@hysc/meeting 2.6.65 → 2.6.66
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/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/src/BMStream/BMStreamModel.d.ts +6 -1
- package/esm/src/BMStream/BMStreamModelVM.d.ts +10 -3
- package/esm/src/BMUser/BMUser.d.ts +2 -1
- package/esm/src/constants.d.ts +8 -6
- package/esm/src/util/emitter.d.ts +4 -2
- package/package.json +3 -3
- package/umd/index.js +1 -1
- package/umd/src/BMStream/BMStreamModel.d.ts +6 -1
- package/umd/src/BMStream/BMStreamModelVM.d.ts +10 -3
- package/umd/src/BMUser/BMUser.d.ts +2 -1
- package/umd/src/constants.d.ts +8 -6
- package/umd/src/util/emitter.d.ts +4 -2
|
@@ -18,6 +18,11 @@ export interface ConnectErrorMessage {
|
|
|
18
18
|
stream: BMStreamModel;
|
|
19
19
|
isLocal: boolean;
|
|
20
20
|
}
|
|
21
|
+
export interface NoPlayerContainer {
|
|
22
|
+
type: 'share' | 'normal';
|
|
23
|
+
container: 'small' | 'big';
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
21
26
|
export default class BMStreamModel {
|
|
22
27
|
private user;
|
|
23
28
|
private _stream;
|
|
@@ -233,7 +238,7 @@ export default class BMStreamModel {
|
|
|
233
238
|
*/
|
|
234
239
|
updateUser(user: BMUser): void;
|
|
235
240
|
updateSortNum(): void;
|
|
236
|
-
updateSort():
|
|
241
|
+
updateSort(): STREAM_SORT_NUM;
|
|
237
242
|
/**
|
|
238
243
|
* 启动音频音量检测
|
|
239
244
|
*/
|
|
@@ -21,8 +21,9 @@ import BMRoom from '../BMRoom/BMRoom';
|
|
|
21
21
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
22
22
|
import { Device } from '@hysc/core/esm/BoomAdapter/type/value';
|
|
23
23
|
import BMSpeaker from './BMSpeaker';
|
|
24
|
-
import { ShareMediaOptions } from
|
|
25
|
-
import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from
|
|
24
|
+
import { ShareMediaOptions } from '@hysc/core/esm/BoomCore/BCClient/BCClient';
|
|
25
|
+
import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from './getHTMLMediaStreamOptions';
|
|
26
|
+
import { NoPlayerContainer } from './BMStreamModel';
|
|
26
27
|
export declare function transShareScreen2User(userId: string): string;
|
|
27
28
|
export declare const pubFailedStreamMap: Map<string, import("@hysc/core/esm/BoomAdapter/singleMode/stream/RemoteStream").default>;
|
|
28
29
|
/**
|
|
@@ -73,7 +74,12 @@ export default class BMStreamModelVM {
|
|
|
73
74
|
private _speakerDetector;
|
|
74
75
|
private _speakers;
|
|
75
76
|
speakerWatcher: BehaviorSubject<BMUser | null>;
|
|
77
|
+
/** * 窗口没有播放容器的错误处理 */
|
|
78
|
+
noContainerWatcher: Subject<BMStreamModel>;
|
|
79
|
+
/** * 窗口没有大窗口播放容器的错误处理 */
|
|
80
|
+
noBigContainerWatcher: Subject<BMStreamModel>;
|
|
76
81
|
constructor();
|
|
82
|
+
handleNoContainer: (info: NoPlayerContainer) => void;
|
|
77
83
|
private static filterStreamModels;
|
|
78
84
|
initWithRoom(room: BMRoom): this;
|
|
79
85
|
/**
|
|
@@ -180,7 +186,8 @@ export default class BMStreamModelVM {
|
|
|
180
186
|
/**
|
|
181
187
|
* 排序变化之后的处理逻辑
|
|
182
188
|
*/
|
|
183
|
-
|
|
189
|
+
updateUserSort: any;
|
|
190
|
+
updateStreamSort: any;
|
|
184
191
|
/**
|
|
185
192
|
* 创建canvas,目的是为了捕获空track流,给brtc使用
|
|
186
193
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BMStreamModel from '../BMStream/BMStreamModel';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import BCUser from '@hysc/core/esm/BoomAdapter/User/User';
|
|
4
|
+
import { MODEL_SORT_ENUM } from "../constants";
|
|
4
5
|
import BMRoom from '../BMRoom/BMRoom';
|
|
5
6
|
declare type Operation = 'none' | 'getMaster' | 'getManager' | 'removeMaster' | 'getGuest' | 'removeGuest' | 'removeManager' | 'changeNickName' | 'speakerEnable' | 'changeShare' | 'updateUser' | 'raiseHandsVideo' | 'raiseHandsAudio' | 'audienceEnableSpeaking' | 'inBackground' | 'raiseHand' | 'audienceEnableSpeaking';
|
|
6
7
|
interface IUserActionWatcher {
|
|
@@ -150,6 +151,6 @@ export default class BMUser {
|
|
|
150
151
|
* 更新当前用户的排序
|
|
151
152
|
*/
|
|
152
153
|
updateSortNum(): void;
|
|
153
|
-
updateSort():
|
|
154
|
+
updateSort(): MODEL_SORT_ENUM;
|
|
154
155
|
}
|
|
155
156
|
export {};
|
package/esm/src/constants.d.ts
CHANGED
|
@@ -27,13 +27,13 @@ export declare enum MODEL_SORT_ENUM {
|
|
|
27
27
|
}
|
|
28
28
|
export declare enum STREAM_SORT_NUM {
|
|
29
29
|
MASTER_AUDIO_VIDEO = 0,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
MANAGER_AUDIO_VIDEO = 1,
|
|
31
|
+
AUDIO_VIDEO = 2,
|
|
32
|
+
MASTER_AUDIO = 3,
|
|
33
33
|
MANAGER_AUDIO = 4,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
AUDIO = 5,
|
|
35
|
+
MASTER_VIDEO = 6,
|
|
36
|
+
MANAGER_VIDEO = 7,
|
|
37
37
|
VIDEO = 8,
|
|
38
38
|
MASTER = 9,
|
|
39
39
|
MANAGER = 10,
|
|
@@ -75,6 +75,7 @@ export declare const RECEIVE_SUBSCRIBE_MESSAGE = "sub-message";
|
|
|
75
75
|
* 用户的排序改变
|
|
76
76
|
*/
|
|
77
77
|
export declare const USER_SORT_NUM_CHANGE = "user-sort-num-change";
|
|
78
|
+
export declare const STREAM_SORT_NUM_CHANGE = "stream-sort-num-change";
|
|
78
79
|
/**
|
|
79
80
|
* 收到业务端bindDom的事件信息,主要是处理播放逻辑的功能
|
|
80
81
|
*/
|
|
@@ -97,3 +98,4 @@ export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
|
|
|
97
98
|
*/
|
|
98
99
|
export declare const CHANG_IS_GUEST = "change-is-guest";
|
|
99
100
|
export declare const BIND_BIG_ELEMENT = "bind-big-element";
|
|
101
|
+
export declare const NO_CONTAINER = "no-container";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ConnectErrorMessage, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
-
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
1
|
+
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
2
|
+
import { BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, STREAM_SORT_NUM_CHANGE, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
3
3
|
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
4
4
|
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
5
5
|
declare type Events = {
|
|
6
6
|
[RECEIVE_SUBSCRIBE_MESSAGE]: SubscribeMessage;
|
|
7
7
|
[USER_SORT_NUM_CHANGE]: null;
|
|
8
|
+
[STREAM_SORT_NUM_CHANGE]: null;
|
|
8
9
|
[HANDLE_STREAM_CONNECT_ERROR]: ConnectErrorMessage;
|
|
9
10
|
[RAISE_HAND]: RaiseHandInfo;
|
|
10
11
|
[UNSUBSCRIBE_STREAM]: SubscribeMessage;
|
|
@@ -12,6 +13,7 @@ declare type Events = {
|
|
|
12
13
|
[CHANG_IS_GUEST]: ChangeIsGuest;
|
|
13
14
|
[BIND_ELEMENT]: SubscribeMessage;
|
|
14
15
|
[BIND_BIG_ELEMENT]: SubscribeMessage;
|
|
16
|
+
[NO_CONTAINER]: NoPlayerContainer;
|
|
15
17
|
};
|
|
16
18
|
export declare const emitter: import("mitt").Emitter<Events>;
|
|
17
19
|
export declare const removeEmitter: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.66",
|
|
4
4
|
"description": "boom meeting",
|
|
5
5
|
"main": "umd/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "yangliye",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@hysc/core": "2.6.
|
|
17
|
+
"@hysc/core": "2.6.45",
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"@hysc/p-queue": "6.3.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@hysc/utils": "1.2.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@hysc/core": "2.6.
|
|
26
|
+
"@hysc/core": "2.6.45"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.6"
|