@halibegic/react-video-player 0.0.17 → 0.0.19

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
@@ -45,8 +45,6 @@ function App() {
45
45
  return (
46
46
  <LivePlayer
47
47
  url="https://example.com/live.m3u8"
48
- startDate="2025-09-03T00:00:00Z"
49
- endDate="2025-10-03T23:59:59Z"
50
48
  messages={{
51
49
  eventNotStarted: "Live stream još nije počeo. Molimo pričekajte.",
52
50
  eventFinished: "Live stream je završen.",
@@ -58,13 +56,11 @@ function App() {
58
56
  }
59
57
  ```
60
58
 
61
- | Prop | Type | Description | Default |
62
- | ----------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
63
- | `url` | `string` | The live stream URL | - |
64
- | `startDate` | `string` | Start date for the live event in ISO 8601 format | - |
65
- | `endDate` | `string` | End date for the live event in ISO 8601 format | - |
66
- | `onEvent` | `(event: string, data: unknown) => void` | (Optional) Event handler callback for player events | - |
67
- | `messages` | `{ eventNotStarted: string; eventFinished: string; eventStartingSoon?: string; live?: string; }` | (Optional) Custom messages for event not started, finished, starting soon, and live states | `{ eventNotStarted: "Event has not started yet.", eventFinished: "Event has finished.", eventStartingSoon: "Starting soon...", live: "Live" }` |
59
+ | Prop | Type | Description | Default |
60
+ | ---------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
61
+ | `url` | `string` | The live stream URL | - |
62
+ | `onEvent` | `(event: string, data: unknown) => void` | (Optional) Event handler callback for player events | - |
63
+ | `messages` | `{ eventNotStarted: string; eventFinished: string; eventStartingSoon?: string; live?: string; }` | (Optional) Custom messages for event not started, finished, starting soon, and live states | `{ eventNotStarted: "Event has not started yet.", eventFinished: "Event has finished.", eventStartingSoon: "Starting soon...", live: "Live" }` |
68
64
 
69
65
  ## Keyboard Shortcuts
70
66
 
@@ -168,8 +164,6 @@ function App() {
168
164
  return (
169
165
  <LivePlayer
170
166
  url="https://example.com/live.m3u8"
171
- startDate="2025-09-03T00:00:00Z"
172
- endDate="2025-10-03T23:59:59Z"
173
167
  onEvent={handlePlayerEvent}
174
168
  />
175
169
  );
@@ -4,5 +4,5 @@ type LivePlayerEventCheckProps = PropsWithChildren & {
4
4
  eventNotStartedMessage?: string;
5
5
  eventStartingSoonMessage?: string;
6
6
  };
7
- declare function LivePlayerEventCheck({ children, eventFinishedMessage, eventNotStartedMessage, eventStartingSoonMessage, }: LivePlayerEventCheckProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function LivePlayerEventCheck({ children, eventNotStartedMessage, eventStartingSoonMessage, }: LivePlayerEventCheckProps): import("react/jsx-runtime").JSX.Element;
8
8
  export { LivePlayerEventCheck };
@@ -1,7 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  type LivePlayerProviderProps = PropsWithChildren & {
3
3
  startDate: Date;
4
- endDate: Date;
5
4
  };
6
- declare function LivePlayerProvider({ children, startDate, endDate, }: LivePlayerProviderProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function LivePlayerProvider({ children, startDate }: LivePlayerProviderProps): import("react/jsx-runtime").JSX.Element;
7
6
  export { LivePlayerProvider };
@@ -1,7 +1,5 @@
1
1
  type LivePlayerProps = {
2
2
  url: string;
3
- startDate: Date | string;
4
- endDate: Date | string;
5
3
  messages?: {
6
4
  eventFinished: string;
7
5
  eventNotStarted: string;
@@ -10,6 +8,6 @@ type LivePlayerProps = {
10
8
  };
11
9
  onEvent?: (event: string, data: unknown) => void;
12
10
  };
13
- declare function LivePlayer({ url, startDate, endDate, messages, onEvent, }: LivePlayerProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function LivePlayer({ url, messages, onEvent }: LivePlayerProps): import("react/jsx-runtime").JSX.Element | null;
14
12
  export { LivePlayer };
15
13
  export type { LivePlayerProps };
@@ -1,11 +1,36 @@
1
- export declare const PlayerContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- export declare const ControlsBottom: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const ControlsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- export declare const ControlsRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- export declare const ControlsSection: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- export declare const ControlsSectionStart: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
7
- ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
8
- }, never>> & string;
9
- export declare const ControlsSectionEnd: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
10
- ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
11
- }, never>> & string;
1
+ export declare const PlayerContainer: import('@emotion/styled').StyledComponent<{
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
4
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const TopControls: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const ControlsBottom: import('@emotion/styled').StyledComponent<{
10
+ theme?: import('@emotion/react').Theme;
11
+ as?: React.ElementType;
12
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const ControlsContainer: import('@emotion/styled').StyledComponent<{
14
+ theme?: import('@emotion/react').Theme;
15
+ as?: React.ElementType;
16
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ export declare const ControlsRow: import('@emotion/styled').StyledComponent<{
18
+ theme?: import('@emotion/react').Theme;
19
+ as?: React.ElementType;
20
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ export declare const ControlsSection: import('@emotion/styled').StyledComponent<{
22
+ theme?: import('@emotion/react').Theme;
23
+ as?: React.ElementType;
24
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
+ export declare const ControlsSectionStart: import('@emotion/styled').StyledComponent<{
26
+ theme?: import('@emotion/react').Theme;
27
+ as?: React.ElementType;
28
+ } & import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
29
+ theme?: import('@emotion/react').Theme;
30
+ }, {}, {}>;
31
+ export declare const ControlsSectionEnd: import('@emotion/styled').StyledComponent<{
32
+ theme?: import('@emotion/react').Theme;
33
+ as?: React.ElementType;
34
+ } & import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
35
+ theme?: import('@emotion/react').Theme;
36
+ }, {}, {}>;
@@ -1,6 +1,15 @@
1
- declare const ProgressSlider: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- declare const TipContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
1
+ declare const ProgressSlider: import('@emotion/styled').StyledComponent<{
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
4
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ declare const TipContainer: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ } & {
3
9
  $isVisible: boolean;
4
- }>> & string;
5
- declare const TipContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
10
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ declare const TipContent: import('@emotion/styled').StyledComponent<{
12
+ theme?: import('@emotion/react').Theme;
13
+ as?: React.ElementType;
14
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
6
15
  export { ProgressSlider, TipContainer, TipContent };
@@ -1,10 +1,25 @@
1
- declare const RemainingTime: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- declare const Time: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
3
- declare const CurrentTime: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>, "ref"> & {
4
- ref?: ((instance: HTMLParagraphElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLParagraphElement> | null | undefined;
5
- }, never>> & string;
6
- declare const Duration: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>, "ref"> & {
7
- ref?: ((instance: HTMLParagraphElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLParagraphElement> | null | undefined;
8
- }, never>> & string;
9
- declare const Separator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
1
+ declare const RemainingTime: import('@emotion/styled').StyledComponent<{
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
4
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ declare const Time: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
9
+ declare const CurrentTime: import('@emotion/styled').StyledComponent<{
10
+ theme?: import('@emotion/react').Theme;
11
+ as?: React.ElementType;
12
+ } & import('react').ClassAttributes<HTMLParagraphElement> & import('react').HTMLAttributes<HTMLParagraphElement> & {
13
+ theme?: import('@emotion/react').Theme;
14
+ }, {}, {}>;
15
+ declare const Duration: import('@emotion/styled').StyledComponent<{
16
+ theme?: import('@emotion/react').Theme;
17
+ as?: React.ElementType;
18
+ } & import('react').ClassAttributes<HTMLParagraphElement> & import('react').HTMLAttributes<HTMLParagraphElement> & {
19
+ theme?: import('@emotion/react').Theme;
20
+ }, {}, {}>;
21
+ declare const Separator: import('@emotion/styled').StyledComponent<{
22
+ theme?: import('@emotion/react').Theme;
23
+ as?: React.ElementType;
24
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
10
25
  export { CurrentTime, Duration, RemainingTime, Separator, Time };