@nikelroot/video-player 0.2.9 → 0.2.10
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 +3 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,9 +25,8 @@ export function Example() {
|
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
27
|
<VideoPlayer
|
|
28
|
-
videoRef={videoRef}
|
|
29
28
|
videoSrc="https://example.com/stream.m3u8"
|
|
30
|
-
|
|
29
|
+
videoRef={videoRef}
|
|
31
30
|
active={true}
|
|
32
31
|
live={false}
|
|
33
32
|
autoPlay={false}
|
|
@@ -37,6 +36,8 @@ export function Example() {
|
|
|
37
36
|
}
|
|
38
37
|
```
|
|
39
38
|
|
|
39
|
+
Only `videoSrc` is required. `controlsVariant` defaults to `"none"`; set it to `"full"`, `"fullscreen-only"`, or `"tiny"` to render built-in controls.
|
|
40
|
+
|
|
40
41
|
When `active` is `true`, pressing `F` toggles fullscreen.
|
|
41
42
|
|
|
42
43
|
## Multiple MP4 players
|
package/dist/index.d.cts
CHANGED
|
@@ -36,7 +36,7 @@ interface VideoPlayerProps extends Omit<React.VideoHTMLAttributes<HTMLVideoEleme
|
|
|
36
36
|
videoSrc: string;
|
|
37
37
|
sourceType?: 'auto' | 'hls' | 'native';
|
|
38
38
|
type?: string;
|
|
39
|
-
controlsVariant
|
|
39
|
+
controlsVariant?: ControlsVariant;
|
|
40
40
|
active?: boolean;
|
|
41
41
|
autoPlay?: boolean;
|
|
42
42
|
preload?: '' | 'none' | 'auto' | 'metadata';
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ interface VideoPlayerProps extends Omit<React.VideoHTMLAttributes<HTMLVideoEleme
|
|
|
36
36
|
videoSrc: string;
|
|
37
37
|
sourceType?: 'auto' | 'hls' | 'native';
|
|
38
38
|
type?: string;
|
|
39
|
-
controlsVariant
|
|
39
|
+
controlsVariant?: ControlsVariant;
|
|
40
40
|
active?: boolean;
|
|
41
41
|
autoPlay?: boolean;
|
|
42
42
|
preload?: '' | 'none' | 'auto' | 'metadata';
|