@hysc/meeting 5.0.39 → 5.0.41

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.
@@ -16,6 +16,7 @@ interface BMRoomProps {
16
16
  initDevices: boolean;
17
17
  }
18
18
  export declare let _selfSortType: number;
19
+ export declare let autoPlayAudio: boolean;
19
20
  export default class BMRoom {
20
21
  roomVM: BMRoomVM | null;
21
22
  userVM: BMUserVM;
@@ -100,6 +101,7 @@ export default class BMRoom {
100
101
  brtc: boolean;
101
102
  };
102
103
  brtcNetEnableWatcher: Subject<boolean>;
104
+ autoPlayAudio: boolean;
103
105
  audioPlayer: AudioPlay;
104
106
  get isSingleColumns(): boolean;
105
107
  /**
@@ -110,7 +112,18 @@ export default class BMRoom {
110
112
  localUser: BMUser;
111
113
  bmLiveVM: BMLiveVM;
112
114
  isInWaitRoom: boolean;
115
+ shouldPlayAudio: boolean;
113
116
  constructor({ initDevices }?: BMRoomProps);
117
+ /**
118
+ * 是否自动播放声音
119
+ * @param value
120
+ */
121
+ setAutoPlayAudio(value: boolean): void;
122
+ /**
123
+ * 是否应该播放声音
124
+ * @param value
125
+ */
126
+ setShouldPlayAudio(value: boolean): void;
114
127
  handleReprocessStreamError: () => void;
115
128
  initAudioPlayer(playerContainerId: string): void;
116
129
  /**
@@ -23,6 +23,7 @@ import { Device } from '@hysc/core/esm/BoomAdapter/type/value';
23
23
  import BMSpeaker from './BMSpeaker';
24
24
  import { ShareMediaOptions } from "@hysc/core/esm/BoomCore/BCClient/BCClient";
25
25
  import { getHTMLMediaStreamOptions, Result, getMediaStreamInfo } from "./getHTMLMediaStreamOptions";
26
+ import { BloudStream } from '@hysc/core';
26
27
  export declare function transShareScreen2User(userId: string): string;
27
28
  export default class BMStreamModelVM {
28
29
  streamModels: Map<string, BMStreamModel>;
@@ -35,7 +36,7 @@ export default class BMStreamModelVM {
35
36
  localStreamErrorWatcher: Subject<string>;
36
37
  localModel: BMStreamModel | null;
37
38
  room: BMRoom | null;
38
- bloudStream: any;
39
+ bloudStream: BloudStream | null;
39
40
  brtcStream: SingleLocalStream | undefined;
40
41
  /**
41
42
  * 后面打开摄像头存储的流,主要是关闭摄像头的时候得把它清除掉