@realsee/live 0.5.2-dev.4 → 0.5.2-dev.6

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.
@@ -7,11 +7,15 @@ export declare class BrowserRTC extends CoreRTC {
7
7
  micro: boolean;
8
8
  voiceId: string;
9
9
  private _getVoiceSign;
10
+ private _autoPlayConfirm;
10
11
  checkRequirement: () => Promise<import("trtc-js-sdk").CheckResult>;
11
12
  private $dom;
12
13
  private _trtc;
13
14
  constructor(options: {
14
15
  getVoiceSign: GetVoiceSign;
16
+ autoPlayConfirm?: (opts: {
17
+ onConfirm: () => void;
18
+ }) => void;
15
19
  });
16
20
  private _initParentDom;
17
21
  join: (options: {
@@ -39,6 +39,14 @@ export interface LiveOptions {
39
39
  * 使用内置rtc时提供给rtc实例使用
40
40
  */
41
41
  getVoiceSign?: GetVoiceSign;
42
+ /**
43
+ * 使用webRTC时会有自动播放的安全策略限制,用户有交互
44
+ * @param options
45
+ * @returns
46
+ */
47
+ autoPlayConfirm?: (options: {
48
+ onConfirm: () => void;
49
+ }) => void;
42
50
  /**
43
51
  * 使用内置的rtc实例
44
52
  */