@nikelroot/video-player 0.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/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @nikelroot/video-player
2
+
3
+ Standalone React video player with HLS support, retry/recovery behavior, fullscreen, seek controls, and overridable error messages.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @nikelroot/video-player
9
+ ```
10
+
11
+ Peer dependencies:
12
+
13
+ ```bash
14
+ npm install react react-dom antd @ant-design/icons styled-components
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```tsx
20
+ import VideoPlayer from '@nikelroot/video-player';
21
+
22
+ export function Example() {
23
+ return (
24
+ <VideoPlayer
25
+ videoSrc="https://example.com/stream.m3u8"
26
+ controlsVariant="full"
27
+ live={false}
28
+ autoPlay={false}
29
+ onTimeChange={(time) => console.log(time)}
30
+ />
31
+ );
32
+ }
33
+ ```
34
+
35
+ Build before publishing:
36
+
37
+ ```bash
38
+ npm run build
39
+ ```