@halibegic/react-video-player 0.0.49 → 0.0.50

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.
@@ -1,10 +1,10 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  type LivePlayerEventCheckProps = PropsWithChildren & {
3
3
  url: string;
4
- messages?: {
5
- eventNotStarted?: string;
6
- eventStartingSoon?: string;
7
- unableToPlay?: string;
4
+ messages: {
5
+ eventNotStarted: string;
6
+ eventStartingSoon: string;
7
+ unableToPlay: string;
8
8
  };
9
9
  };
10
10
  declare function LivePlayerEventCheck({ url, ...props }: LivePlayerEventCheckProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,8 +1,7 @@
1
1
  type LivePlayerTechProps = {
2
2
  url: string;
3
- messages?: {
4
- eventFinished?: string;
5
- unableToPlay?: string;
3
+ messages: {
4
+ unableToPlay: string;
6
5
  };
7
6
  };
8
7
  declare function LivePlayerTech({ url, messages }: LivePlayerTechProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +1,11 @@
1
1
  type LivePlayerProps = {
2
2
  url: string;
3
3
  messages?: {
4
- eventFinished: string;
5
- eventNotStarted: string;
6
- eventStartingSoon: string;
7
- live: string;
8
- unableToPlay: string;
4
+ eventFinished?: string;
5
+ eventNotStarted?: string;
6
+ eventStartingSoon?: string;
7
+ live?: string;
8
+ unableToPlay?: string;
9
9
  };
10
10
  onEvent?: (event: string, data: unknown) => void;
11
11
  };
@@ -1,9 +1,8 @@
1
1
  type PlayerHlsEngineProps = {
2
2
  url: string;
3
3
  isLive: boolean;
4
- messages?: {
5
- eventFinished?: string;
6
- unableToPlay?: string;
4
+ messages: {
5
+ unableToPlay: string;
7
6
  };
8
7
  };
9
8
  declare function PlayerHlsEngine({ url, isLive, messages }: PlayerHlsEngineProps): null;
@@ -2,9 +2,8 @@ type PlayerTechProps = {
2
2
  url: string;
3
3
  isLive: boolean;
4
4
  isMuted?: boolean;
5
- messages?: {
6
- eventFinished?: string;
7
- unableToPlay?: string;
5
+ messages: {
6
+ unableToPlay: string;
8
7
  };
9
8
  };
10
9
  declare function PlayerTech({ url, isLive, isMuted, messages, }: PlayerTechProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@halibegic/react-video-player",
3
3
  "description": "A React video player library with HLS support for VOD and Live streaming",
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "react",