neoplayer 1.0.0 → 1.1.0
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.
- package/dist/NeoPlayer.css +1 -1
- package/dist/NeoPlayer.esm.js +528 -46
- package/dist/NeoPlayer.esm.js.map +1 -1
- package/dist/NeoPlayer.min.js +528 -46
- package/dist/NeoPlayer.min.js.map +1 -1
- package/dist/types/info-panel.d.ts +18 -2
- package/dist/types/template.d.ts +8 -3
- package/package.json +1 -1
|
@@ -4,12 +4,28 @@ declare class InfoPanel {
|
|
|
4
4
|
private template;
|
|
5
5
|
private video;
|
|
6
6
|
private player;
|
|
7
|
-
private
|
|
7
|
+
private lastDecodedBytes;
|
|
8
|
+
private lastBitrateTime;
|
|
9
|
+
private lastBitrateBps;
|
|
10
|
+
private lastTotalFrames;
|
|
11
|
+
private lastFpsTime;
|
|
12
|
+
private lastVideoFps;
|
|
8
13
|
constructor(player: NeoPlayerInstance);
|
|
9
14
|
show(): void;
|
|
10
15
|
hide(): void;
|
|
11
16
|
triggle(): void;
|
|
12
17
|
update(): void;
|
|
13
|
-
fps(
|
|
18
|
+
fps(_value: number): void;
|
|
19
|
+
private copyStats;
|
|
20
|
+
private formatVideoFPS;
|
|
21
|
+
private getTotalVideoFrames;
|
|
22
|
+
private formatTracks;
|
|
23
|
+
private formatCodecs;
|
|
24
|
+
private formatBitrate;
|
|
25
|
+
private formatConnection;
|
|
26
|
+
private formatBps;
|
|
27
|
+
private formatTimeDuration;
|
|
28
|
+
private formatFrameStats;
|
|
29
|
+
private formatBufferHealth;
|
|
14
30
|
}
|
|
15
31
|
export default InfoPanel;
|
package/dist/types/template.d.ts
CHANGED
|
@@ -79,14 +79,19 @@ declare class Template {
|
|
|
79
79
|
noticeList: HTMLElement;
|
|
80
80
|
infoPanel: HTMLElement;
|
|
81
81
|
infoPanelClose: HTMLElement;
|
|
82
|
+
infoPanelCopy: HTMLElement;
|
|
82
83
|
infoVersion: HTMLElement;
|
|
83
84
|
infoFPS: HTMLElement;
|
|
84
|
-
infoType: HTMLElement;
|
|
85
85
|
infoUrl: HTMLElement;
|
|
86
|
+
infoCodecs: HTMLElement;
|
|
87
|
+
infoBitrate: HTMLElement;
|
|
88
|
+
infoConnection: HTMLElement;
|
|
86
89
|
infoResolution: HTMLElement;
|
|
87
90
|
infoDuration: HTMLElement;
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
infoFrames: HTMLElement;
|
|
92
|
+
infoBuffer: HTMLElement;
|
|
93
|
+
infoPlayback: HTMLElement;
|
|
94
|
+
infoTracks: HTMLElement;
|
|
90
95
|
infoDanmakuAmount: HTMLElement;
|
|
91
96
|
constructor(options: TemplateConstructorOptions);
|
|
92
97
|
private init;
|
package/package.json
CHANGED