@hysc/meeting 5.0.91 → 5.0.93
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-core/src/BoomCore/BCClient/clientEventType.d.ts +1 -1
- package/esm/boom-meeting/src/BMStream/BMStreamModel.d.ts +2 -0
- package/esm/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +15 -1
- package/esm/boom-meeting/src/audioPlay/AudioPlay.d.ts +3 -3
- package/esm/boom-meeting/src/handleEvent/attachEvents.d.ts +1 -0
- package/esm/boom-meeting/src/handleEvent/streamEvent.d.ts +1 -0
- package/esm/index.js +799 -3
- package/esm/index.js.map +2 -2
- package/esm/src/BMRoom/BMRoom.d.ts +696 -696
- package/esm/src/BMStream/BMStreamModel.d.ts +2 -0
- package/esm/src/BMStream/BMStreamModelVM.d.ts +15 -1
- package/esm/src/audioPlay/AudioPlay.d.ts +3 -3
- package/esm/src/handleEvent/attachEvents.d.ts +1 -0
- package/esm/src/handleEvent/streamEvent.d.ts +1 -0
- package/esm/utils/ErrorTypes.d.ts +1 -1
- package/package.json +6 -6
- package/umd/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +1 -1
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +2 -0
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +15 -1
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +3 -3
- package/umd/boom-meeting/src/handleEvent/attachEvents.d.ts +1 -0
- package/umd/boom-meeting/src/handleEvent/streamEvent.d.ts +1 -0
- package/umd/index.js +799 -3
- package/umd/utils/ErrorTypes.d.ts +1 -1
|
@@ -423,6 +423,6 @@ export declare enum BCEvent {
|
|
|
423
423
|
BRTC_SHARE_SYNC_ROOM_COMPLETED = "brtc-share-sync-room-completed",
|
|
424
424
|
LEAVE_USERS = "leaveUsers",
|
|
425
425
|
ROOM_ERROR = "error-room",
|
|
426
|
-
|
|
426
|
+
UPDATE_STREAM = "update-stream"
|
|
427
427
|
}
|
|
428
428
|
export default BCEvent;
|
|
@@ -4,6 +4,7 @@ import { BehaviorSubject, Subject } from "rxjs";
|
|
|
4
4
|
import { Player } from "@hysc/core/esm";
|
|
5
5
|
import BMStreamModelVM from "./BMStreamModelVM";
|
|
6
6
|
import { BloudStreamState } from "../handleEvent/attachEvents";
|
|
7
|
+
import type { StreamCustomInfo } from '@hysc/bloud';
|
|
7
8
|
/**
|
|
8
9
|
* @name: BMStreamModel
|
|
9
10
|
* @author: yangliye
|
|
@@ -151,6 +152,7 @@ export default class BMStreamModel {
|
|
|
151
152
|
* @param forceSearch
|
|
152
153
|
*/
|
|
153
154
|
updateBloudStream(streamState: BloudStreamState | undefined, bmStreamVM: BMStreamModelVM, forceSearch?: boolean): void;
|
|
155
|
+
updateBloudCustomInfo(customInfo: StreamCustomInfo): void;
|
|
154
156
|
private onPlayerStateChange;
|
|
155
157
|
handleStreamConnectError: () => void;
|
|
156
158
|
/**
|
|
@@ -19,12 +19,14 @@ import BMUser from "../BMUser/BMUser";
|
|
|
19
19
|
import { SingleLocalStream, SingleRemoteStream, SingleStream } from "../type";
|
|
20
20
|
import BMRoom from "../BMRoom/BMRoom";
|
|
21
21
|
import { BehaviorSubject, Subject } from "rxjs";
|
|
22
|
-
import BoomError from "
|
|
22
|
+
import { BoomError } from "@hysc/utils";
|
|
23
23
|
import { Device } from "@hysc/core/esm/BoomAdapter/type/value";
|
|
24
24
|
import BMSpeaker from "./BMSpeaker";
|
|
25
25
|
import { ShareMediaOptions } from "@hysc/core/esm/BoomCore/BCClient/BCClient";
|
|
26
26
|
import { getHTMLMediaStreamOptions, getMediaStreamInfo, Result } from "./getHTMLMediaStreamOptions";
|
|
27
27
|
import { BloudStream } from "@hysc/core";
|
|
28
|
+
import type { StreamCustomInfo } from '@hysc/bloud';
|
|
29
|
+
import { BloudStreamEventState } from "../handleEvent/attachEvents";
|
|
28
30
|
export declare function transShareScreen2User(userId: string): string;
|
|
29
31
|
export default class BMStreamModelVM {
|
|
30
32
|
streamModels: Map<string, BMStreamModel>;
|
|
@@ -81,6 +83,10 @@ export default class BMStreamModelVM {
|
|
|
81
83
|
* 共享屏幕流错误
|
|
82
84
|
*/
|
|
83
85
|
localShareError: Subject<BoomError>;
|
|
86
|
+
/**
|
|
87
|
+
* 共享屏幕流是单独处理的逻辑,不是先创建streamModel然后在去查流,而是先去查流,在创建streamModel
|
|
88
|
+
*/
|
|
89
|
+
shareBloudStateMap: Map<string, BloudStreamEventState>;
|
|
84
90
|
constructor();
|
|
85
91
|
private static filterStreamModels;
|
|
86
92
|
initWithRoom(room: BMRoom): this;
|
|
@@ -160,6 +166,10 @@ export default class BMStreamModelVM {
|
|
|
160
166
|
* @param enable
|
|
161
167
|
*/
|
|
162
168
|
muteSpeaker(enable: boolean): Promise<undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* 创建本地音频流
|
|
171
|
+
*/
|
|
172
|
+
createLocalAudioStream(): Promise<void>;
|
|
163
173
|
/**
|
|
164
174
|
* 创建流并且发布
|
|
165
175
|
* @param audio 是否发布音频流
|
|
@@ -246,5 +256,9 @@ export default class BMStreamModelVM {
|
|
|
246
256
|
*/
|
|
247
257
|
getHTMLMediaStream: typeof getHTMLMediaStreamOptions;
|
|
248
258
|
getMediaStream: typeof getMediaStreamInfo;
|
|
259
|
+
/**
|
|
260
|
+
* 更新流信息 会给服务端发送updateStream信令,会收到updateStream的广播
|
|
261
|
+
*/
|
|
262
|
+
updateBloudStreamCustomStats(uid: string, streamId: string, streamInfo: StreamCustomInfo): Promise<any> | undefined;
|
|
249
263
|
clearCache(): void;
|
|
250
264
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @description:AudioPlay.ts
|
|
6
6
|
* @update: 2023-06-08 16:35
|
|
7
7
|
*/
|
|
8
|
-
import { SingleStream } from "../type";
|
|
8
|
+
import { SingleRemoteStream, SingleStream } from "../type";
|
|
9
9
|
import { AudioPlayer } from '@hysc/core';
|
|
10
10
|
import BMRoom from "../BMRoom/BMRoom";
|
|
11
11
|
import { Subject } from "rxjs";
|
|
@@ -18,10 +18,10 @@ export default class AudioPlay {
|
|
|
18
18
|
playStateChangeWatcher: Subject<AudioPlayer>;
|
|
19
19
|
deviceId?: string;
|
|
20
20
|
constructor(containerId: string, room: BMRoom);
|
|
21
|
-
addStream(stream:
|
|
21
|
+
addStream(stream: SingleRemoteStream): void;
|
|
22
22
|
removeStream(stream: SingleStream): void;
|
|
23
23
|
removeStreamByUid(uid: string): void;
|
|
24
|
-
play(stream:
|
|
24
|
+
play(stream: SingleRemoteStream): Promise<void>;
|
|
25
25
|
mute(mute: boolean): void;
|
|
26
26
|
setVolume(streamId: string, volume: number): void;
|
|
27
27
|
setDevice(deviceId: string): void;
|
|
@@ -17,5 +17,6 @@ export declare function handleStreamPublished(event: any, bmStreamVm: BMStreamMo
|
|
|
17
17
|
export declare function handleBloudStreamPublished(data: any, bmStreamVm: BMStreamModelVM, observes: any): void;
|
|
18
18
|
export declare function handleBloudStreamPubAUpdate(data: BloudStreamEventState, bmStreamVm: BMStreamModelVM, isPublish?: boolean): void;
|
|
19
19
|
export declare function handleBloudStreamUnPublished(data: any, bmStreamVm: BMStreamModelVM, observes: any): void;
|
|
20
|
+
export declare function handleBloudStreamUpdated(data: any, bmStreamVm: BMStreamModelVM, observes: any): void;
|
|
20
21
|
export declare function handleBloudStreamUnpublish(data: BloudUnPubEvent, bmStreamVm: BMStreamModelVM): void;
|
|
21
22
|
export declare function handleShareStreamFailed(bmRoom: BMRoom, bmStreamVm: BMStreamModelVM): void;
|