@glitchlab/react-video-player 1.2.0 → 1.4.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/README.md +20 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.mjs +594 -450
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,20 @@ export declare function parseYouTubeId(input: string): string | null;
|
|
|
37
37
|
/** Extract a `t`/`start` timestamp (in seconds) from a YouTube URL, if present. */
|
|
38
38
|
export declare function parseYouTubeStart(input: string): number | null;
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* A normalized quality-level descriptor for an HLS stream. `index` maps to a
|
|
42
|
+
* `hls.js` level index; the special index `-1` represents "Auto" (adaptive
|
|
43
|
+
* bitrate, where hls.js picks the level).
|
|
44
|
+
*/
|
|
45
|
+
export declare interface QualityLevelInfo {
|
|
46
|
+
/** hls.js level index, or -1 for the synthetic "Auto" entry. */
|
|
47
|
+
index: number;
|
|
48
|
+
/** Vertical resolution in pixels (0 when unknown). */
|
|
49
|
+
height: number;
|
|
50
|
+
/** Display label, e.g. "1080p", "720p", or "Auto". */
|
|
51
|
+
label: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
export declare const ReactVideoPlayer: default_2.FC<ReactVideoPlayerProps>;
|
|
41
55
|
|
|
42
56
|
export declare interface ReactVideoPlayerProps {
|
|
@@ -62,12 +76,13 @@ export declare interface ReactVideoPlayerProps {
|
|
|
62
76
|
loop?: boolean;
|
|
63
77
|
/**
|
|
64
78
|
* Controls mode.
|
|
65
|
-
* - `
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
79
|
+
* - `true` (default) / `"custom"`: branded custom control bar at the
|
|
80
|
+
* bottom of the frame, consistent across browsers/OS. Auto-hides
|
|
81
|
+
* during playback.
|
|
82
|
+
* - `"native"`: native browser controls (look varies by browser/OS).
|
|
83
|
+
* - `false`: no controls — just the centered play overlay.
|
|
69
84
|
*/
|
|
70
|
-
controls?: boolean | "custom";
|
|
85
|
+
controls?: boolean | "custom" | "native";
|
|
71
86
|
/**
|
|
72
87
|
* Start playback as soon as the source loads. Defaults to `false`.
|
|
73
88
|
* Browsers block sound-on autoplay, so this only autoplays when `muted`
|