@hysc/meeting 5.0.113 → 5.0.115
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.
|
@@ -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: () =>
|
|
219
|
-
/**
|
|
220
|
-
* 判断当前是不是正在小窗口播放
|
|
221
|
-
*/
|
|
222
|
-
currentBigIsPlaying: () => boolean | null | undefined;
|
|
230
|
+
currentIsPlaying: (containerId: string) => PlayerState;
|
|
223
231
|
/**
|
|
224
232
|
* 播放当前流
|
|
225
233
|
*/
|
|
226
|
-
play:
|
|
234
|
+
play: () => Promise<void>;
|
|
227
235
|
/**
|
|
228
236
|
* 在大窗口播放该流的时候调用这个方法
|
|
229
237
|
*/
|
|
230
|
-
playInBig:
|
|
238
|
+
playInBig: () => Promise<void>;
|
|
231
239
|
private initBigPlayer;
|
|
232
240
|
/**
|
|
233
241
|
* 停止播放当前流
|
|
@@ -287,6 +295,11 @@ export default class BMStreamModel {
|
|
|
287
295
|
*/
|
|
288
296
|
subscribeStream(): void;
|
|
289
297
|
unSubscribeStream(): void;
|
|
290
|
-
checkStreamIsPlaying
|
|
298
|
+
checkStreamIsPlaying: any;
|
|
299
|
+
/**
|
|
300
|
+
* 取消流的播放
|
|
301
|
+
* @param type big: 大窗口 small: 小窗口 all: 全部
|
|
302
|
+
*/
|
|
303
|
+
unAttach(type: 'big' | 'small' | 'all'): void;
|
|
291
304
|
}
|
|
292
305
|
export {};
|