@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.
@@ -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: () => boolean;
219
- /**
220
- * 判断当前是不是正在小窗口播放
221
- */
222
- currentBigIsPlaying: () => boolean | null | undefined;
230
+ currentIsPlaying: (containerId: string) => PlayerState;
223
231
  /**
224
232
  * 播放当前流
225
233
  */
226
- play: any;
234
+ play: () => Promise<void>;
227
235
  /**
228
236
  * 在大窗口播放该流的时候调用这个方法
229
237
  */
230
- playInBig: any;
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(): void;
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(): void;
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;