@halibegic/react-video-player 0.0.49 → 0.0.51

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
@@ -88,17 +88,18 @@ function App() {
88
88
  eventFinished: "Live stream je završen.",
89
89
  eventStartingSoon: "Počinje za nekoliko sekundi...",
90
90
  live: "Uživo",
91
- unableToPlay: "Stream ne može biti reprodukovan. Molimo pokušajte kasnije.",
91
+ unableToPlay:
92
+ "Stream ne može biti reprodukovan. Molimo pokušajte kasnije.",
92
93
  }}
93
94
  />
94
95
  );
95
96
  }
96
97
  ```
97
98
 
98
- | Prop | Type | Description | Default |
99
- | ---------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
100
- | `url` | `string` | The live stream URL | - |
101
- | `onEvent` | `(event: string, data: unknown) => void` | (Optional) Event handler callback for player events | - |
99
+ | Prop | Type | Description | Default |
100
+ | ---------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
101
+ | `url` | `string` | The live stream URL | - |
102
+ | `onEvent` | `(event: string, data: unknown) => void` | (Optional) Event handler callback for player events | - |
102
103
  | `messages` | `{ eventNotStarted: string; eventFinished: string; eventStartingSoon?: string; live?: string; unableToPlay?: string; }` | (Optional) Custom messages for event not started, finished, starting soon, live states, and unable to play errors | `{ eventNotStarted: "Event has not started yet.", eventFinished: "Event has finished.", eventStartingSoon: "Starting soon...", live: "Live" }` |
103
104
 
104
105
  ## Keyboard Shortcuts
@@ -131,7 +132,7 @@ Both `VodPlayer` and `LivePlayer` support event handling through the `onEvent` p
131
132
  | `timeUpdate` | `{ currentTime: number; duration: number }` | Fired during playback with current time and duration |
132
133
  | `volumeChange` | `{ volume: number }` | Fired when volume changes (0-1) |
133
134
  | `fullscreenChange` | `{ isFullscreen: boolean }` | Fired when fullscreen mode changes |
134
- | `qualityChange` | `{ level: number \| null }` | Fired when video quality changes |
135
+ | `qualityChange` | `{ level: string \| null }` | Fired when video quality changes |
135
136
  | `loadedMetadata` | `{ duration: number }` | Fired when video metadata is loaded |
136
137
  | `loadStart` | `void` | Fired when loading starts |
137
138
  | `playing` | `void` | Fired when playback actually starts (after buffering) |