pr-player 0.1.4 → 0.1.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.
@@ -16,7 +16,11 @@ interface On {
16
16
  };
17
17
  error?: (_e: any) => void;
18
18
  }
19
+ interface PrPlayerOption {
20
+ debug?: boolean;
21
+ }
19
22
  export declare class PrPlayer {
23
+ private option;
20
24
  private prFetch;
21
25
  private prResolves;
22
26
  private url;
@@ -30,7 +34,7 @@ export declare class PrPlayer {
30
34
  on: On;
31
35
  private cutRenders;
32
36
  trackGenerator: MediaStreamTrackGenerator;
33
- constructor();
37
+ constructor(option?: PrPlayerOption);
34
38
  /**
35
39
  * 初始化
36
40
  */
@@ -64,6 +64,7 @@ export declare class ParseTS {
64
64
  private parsePAT;
65
65
  private parsePMT;
66
66
  private parseAdaptationField;
67
+ private parseAudio;
67
68
  private parseVideo;
68
69
  /**
69
70
  * 解析 PTS/DTS 时间戳(33-bit,单位:90kHz)