@tiwz/react-video-player 1.1.6 → 1.1.7
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 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,15 +57,19 @@ export default function App() {
|
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
60
|
-
##
|
|
60
|
+
## Video Types
|
|
61
|
+
```ts
|
|
62
|
+
type VideoTypes = 'video/mp4' | 'video/ogg' | 'video/webm' |'application/vnd.apple.mpegurl' | 'application/x-mpegURL'
|
|
63
|
+
```
|
|
61
64
|
|
|
65
|
+
## 🧩 Props
|
|
62
66
|
### VideoPlayerProps
|
|
63
67
|
|
|
64
68
|
| Prop | Type | Required | Description |
|
|
65
69
|
|--------|------|----------|--------------|
|
|
66
70
|
| `hls` | `boolean \| Partial<HlsConfig>` | ❌ | Using hls.js |
|
|
67
71
|
| `title` | `string` | ❌ | Video title overlay |
|
|
68
|
-
| `source` | `string \| { link: string; type?:
|
|
72
|
+
| `source` | `string \| { link: string; type?: VideoTypes }` | ✅ | Video source |
|
|
69
73
|
|
|
70
74
|
---
|
|
71
75
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface VideoPlayerProps {
|
|
|
6
6
|
hls?: boolean | Partial<HlsConfig>;
|
|
7
7
|
source: string | {
|
|
8
8
|
link: string;
|
|
9
|
-
type?: 'video/mp4' | 'video/ogg' | 'video/webm';
|
|
9
|
+
type?: 'video/mp4' | 'video/ogg' | 'video/webm' | 'application/vnd.apple.mpegurl' | 'application/x-mpegURL';
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
declare function VideoPlayer({ source, title, hls }: VideoPlayerProps): react_jsx_runtime.JSX.Element;
|