@tiwz/react-video-player 1.1.6 → 1.1.8

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
@@ -57,15 +57,19 @@ export default function App() {
57
57
 
58
58
  ---
59
59
 
60
- ## 🧩 Props
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?: 'video/mp4' \| 'video/ogg' \| 'video/webm' }` | ✅ | Video source |
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;