react-helios 2.0.0 → 2.0.1
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# react-helios
|
|
2
2
|
|
|
3
3
|
Production-grade React video player with HLS streaming, adaptive quality selection, live stream support, subtitle tracks, thumbnail preview, Picture-in-Picture, and full keyboard control.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install react-helios
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
**Peer dependencies** — install if not already in your project:
|
|
@@ -17,8 +17,8 @@ npm install react react-dom
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
|
-
import { VideoPlayer } from "
|
|
21
|
-
import "
|
|
20
|
+
import { VideoPlayer } from "react-helios";
|
|
21
|
+
import "react-helios/styles";
|
|
22
22
|
|
|
23
23
|
export default function App() {
|
|
24
24
|
return (
|
|
@@ -79,7 +79,7 @@ Use a `ref` to control the player programmatically:
|
|
|
79
79
|
|
|
80
80
|
```tsx
|
|
81
81
|
import { useRef } from "react";
|
|
82
|
-
import { VideoPlayer, VideoPlayerRef } from "
|
|
82
|
+
import { VideoPlayer, VideoPlayerRef } from "react-helios";
|
|
83
83
|
|
|
84
84
|
export default function App() {
|
|
85
85
|
const playerRef = useRef<VideoPlayerRef>(null);
|
|
@@ -165,7 +165,7 @@ import type {
|
|
|
165
165
|
BufferedRange,
|
|
166
166
|
VideoError,
|
|
167
167
|
VideoErrorCode,
|
|
168
|
-
} from "
|
|
168
|
+
} from "react-helios";
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
### `PlayerState`
|
package/package.json
CHANGED