@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 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
- controlsVariant="full"
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: 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: ControlsVariant;
39
+ controlsVariant?: ControlsVariant;
40
40
  active?: boolean;
41
41
  autoPlay?: boolean;
42
42
  preload?: '' | 'none' | 'auto' | 'metadata';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nikelroot/video-player",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Standalone React video player with HLS support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",