@hysc/meeting 6.1.19 → 6.1.21
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/BMStream/BMStreamModel.d.ts +3 -0
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +6 -1
- package/esm/boom-meeting/src/constants.d.ts +1 -0
- package/esm/boom-meeting/src/util/emitter.d.ts +3 -2
- package/esm/index.js +1 -1
- package/esm/src/BMRoom/BMRoom.d.ts +2 -10
- package/esm/src/BMStream/BMStreamModel.d.ts +3 -0
- package/esm/src/BMStream/BMStreamModelVM.d.ts +6 -1
- package/esm/src/constants.d.ts +1 -0
- package/esm/src/util/emitter.d.ts +3 -2
- package/package.json +6 -6
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +3 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +6 -1
- package/umd/boom-meeting/src/constants.d.ts +1 -0
- package/umd/boom-meeting/src/util/emitter.d.ts +3 -2
- package/umd/index.js +1 -1
- package/umd/src/BMRoom/BMRoom.d.ts +2 -10
- package/esm/boom-meeting/src/BMRoom/BMRoom.d.ts +0 -703
- package/esm/index.js.map +0 -7
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +0 -703
|
@@ -187,15 +187,7 @@ export default class BMRoom {
|
|
|
187
187
|
/**
|
|
188
188
|
* 初始化输入设备
|
|
189
189
|
*/
|
|
190
|
-
initDevices(): Promise<
|
|
191
|
-
videoDevices: Device[];
|
|
192
|
-
audioDevices: Device[];
|
|
193
|
-
audioOutputDevices: Device[];
|
|
194
|
-
selectVideoDevice: Device | null;
|
|
195
|
-
selectAudioDevice: Device | null;
|
|
196
|
-
selectAudioOutputDevice: Device | null;
|
|
197
|
-
}>;
|
|
198
|
-
/**
|
|
190
|
+
initDevices(): Promise<any>; /**
|
|
199
191
|
* 筛选出默认选中的设备,如果没有,选择第一个
|
|
200
192
|
* @param devices
|
|
201
193
|
*/
|
|
@@ -203,7 +195,7 @@ export default class BMRoom {
|
|
|
203
195
|
/**
|
|
204
196
|
* 处理用户设备变化之后的逻辑
|
|
205
197
|
*/
|
|
206
|
-
|
|
198
|
+
handleMediaDevicesChange: () => Promise<void>;
|
|
207
199
|
setSelectAudioDevice(device: Device): void;
|
|
208
200
|
setSelectVideoDevice(device: Device): void;
|
|
209
201
|
setSelectSpeakerDevice(device: Device): void;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* 共享屏幕用户做了特殊处理,因为web端共享屏幕和移动端共享屏幕处理逻辑不一样
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="node" />
|
|
17
|
-
import BMStreamModel, { NoPlayerContainer } from "./BMStreamModel";
|
|
17
|
+
import BMStreamModel, { NoPlayerContainer, StreamPlayMessage } from "./BMStreamModel";
|
|
18
18
|
import BMUser from "../BMUser/BMUser";
|
|
19
19
|
import { SingleLocalStream, SingleRemoteStream, SingleStream } from "../type";
|
|
20
20
|
import BMRoom from "../BMRoom/BMRoom";
|
|
@@ -89,8 +89,13 @@ export default class BMStreamModelVM {
|
|
|
89
89
|
*/
|
|
90
90
|
shareBloudStateMap: Map<string, BloudStreamEventState>;
|
|
91
91
|
localShareCustomStats: any;
|
|
92
|
+
/**
|
|
93
|
+
* 窗口播放事件,给到端上去做埋点
|
|
94
|
+
*/
|
|
95
|
+
streamPlayWatcher: Subject<StreamPlayMessage>;
|
|
92
96
|
constructor();
|
|
93
97
|
private static filterStreamModels;
|
|
98
|
+
handleStreamPlay: (info: StreamPlayMessage) => void;
|
|
94
99
|
initWithRoom(room: BMRoom): this;
|
|
95
100
|
/**
|
|
96
101
|
* 设置扬声器是否打开
|
package/esm/src/constants.d.ts
CHANGED
|
@@ -127,3 +127,4 @@ export declare const MODEL_SORT_NUM_CHANGE = "model-sort-num-change";
|
|
|
127
127
|
export declare const ADD_PULL_USER = "add-pull-user";
|
|
128
128
|
export declare const SET_VOLUME = "set-volume";
|
|
129
129
|
export declare const ADD_AUDIO_PLAY = "add-audio-play";
|
|
130
|
+
export declare const STREAM_PLAY = "stream-play";
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @update: 2022-05-24 15:15
|
|
7
7
|
*/
|
|
8
8
|
import { Emitter } from "mitt";
|
|
9
|
-
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
10
|
-
import { ADD_AUDIO_PLAY, ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
9
|
+
import { ConnectErrorMessage, NoPlayerContainer, StreamPlayMessage, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
10
|
+
import { ADD_AUDIO_PLAY, ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, STREAM_PLAY, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
11
11
|
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
12
12
|
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
13
13
|
import { PullItem } from "../SingletonQueue/SingletonQueue";
|
|
@@ -34,6 +34,7 @@ declare type Events = {
|
|
|
34
34
|
[ADD_PULL_USER]: PullItem;
|
|
35
35
|
[SET_VOLUME]: VolumeInfo;
|
|
36
36
|
[ADD_AUDIO_PLAY]: SubscribeMessage;
|
|
37
|
+
[STREAM_PLAY]: StreamPlayMessage;
|
|
37
38
|
};
|
|
38
39
|
export default class BoomEmitter {
|
|
39
40
|
static emitter: Emitter<Events> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hysc/meeting",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.21",
|
|
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": "6.1.
|
|
23
|
-
"@hysc/
|
|
24
|
-
"@hysc/
|
|
25
|
-
"@hysc/
|
|
22
|
+
"@hysc/bloud": "6.1.21",
|
|
23
|
+
"@hysc/core": "6.1.21",
|
|
24
|
+
"@hysc/utils": "6.1.0",
|
|
25
|
+
"@hysc/logger": "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@hysc/core": "6.1.
|
|
28
|
+
"@hysc/core": "6.1.21"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/lodash-es": "^4.17.6"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* 共享屏幕用户做了特殊处理,因为web端共享屏幕和移动端共享屏幕处理逻辑不一样
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="node" />
|
|
17
|
-
import BMStreamModel, { NoPlayerContainer } from "./BMStreamModel";
|
|
17
|
+
import BMStreamModel, { NoPlayerContainer, StreamPlayMessage } from "./BMStreamModel";
|
|
18
18
|
import BMUser from "../BMUser/BMUser";
|
|
19
19
|
import { SingleLocalStream, SingleRemoteStream, SingleStream } from "../type";
|
|
20
20
|
import BMRoom from "../BMRoom/BMRoom";
|
|
@@ -89,8 +89,13 @@ export default class BMStreamModelVM {
|
|
|
89
89
|
*/
|
|
90
90
|
shareBloudStateMap: Map<string, BloudStreamEventState>;
|
|
91
91
|
localShareCustomStats: any;
|
|
92
|
+
/**
|
|
93
|
+
* 窗口播放事件,给到端上去做埋点
|
|
94
|
+
*/
|
|
95
|
+
streamPlayWatcher: Subject<StreamPlayMessage>;
|
|
92
96
|
constructor();
|
|
93
97
|
private static filterStreamModels;
|
|
98
|
+
handleStreamPlay: (info: StreamPlayMessage) => void;
|
|
94
99
|
initWithRoom(room: BMRoom): this;
|
|
95
100
|
/**
|
|
96
101
|
* 设置扬声器是否打开
|
|
@@ -127,3 +127,4 @@ export declare const MODEL_SORT_NUM_CHANGE = "model-sort-num-change";
|
|
|
127
127
|
export declare const ADD_PULL_USER = "add-pull-user";
|
|
128
128
|
export declare const SET_VOLUME = "set-volume";
|
|
129
129
|
export declare const ADD_AUDIO_PLAY = "add-audio-play";
|
|
130
|
+
export declare const STREAM_PLAY = "stream-play";
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @update: 2022-05-24 15:15
|
|
7
7
|
*/
|
|
8
8
|
import { Emitter } from "mitt";
|
|
9
|
-
import { ConnectErrorMessage, NoPlayerContainer, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
10
|
-
import { ADD_AUDIO_PLAY, ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
9
|
+
import { ConnectErrorMessage, NoPlayerContainer, StreamPlayMessage, SubscribeMessage } from "../BMStream/BMStreamModel";
|
|
10
|
+
import { ADD_AUDIO_PLAY, ADD_PULL_USER, BIND_BIG_ELEMENT, BIND_ELEMENT, CHANG_IS_GUEST, HANDLE_STREAM_CONNECT_ERROR, MANUAL_SUBSCRIPTION, MODEL_SORT_NUM_CHANGE, NO_CONTAINER, RAISE_HAND, RECEIVE_SUBSCRIBE_MESSAGE, SET_VOLUME, STREAM_PLAY, UNSUBSCRIBE_STREAM, USER_SORT_NUM_CHANGE } from "../constants";
|
|
11
11
|
import { RaiseHandInfo } from "../BMUser/BMUser";
|
|
12
12
|
import { ChangeIsGuest } from "../BMUser/BMUserVM";
|
|
13
13
|
import { PullItem } from "../SingletonQueue/SingletonQueue";
|
|
@@ -34,6 +34,7 @@ declare type Events = {
|
|
|
34
34
|
[ADD_PULL_USER]: PullItem;
|
|
35
35
|
[SET_VOLUME]: VolumeInfo;
|
|
36
36
|
[ADD_AUDIO_PLAY]: SubscribeMessage;
|
|
37
|
+
[STREAM_PLAY]: StreamPlayMessage;
|
|
37
38
|
};
|
|
38
39
|
export default class BoomEmitter {
|
|
39
40
|
static emitter: Emitter<Events> | undefined;
|