@halibegic/react-video-player 0.0.18 → 0.0.20

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.
@@ -2,20 +2,16 @@ import { PropsWithChildren } from 'react';
2
2
  type State = {
3
3
  delay: number;
4
4
  startDate: Date;
5
- endDate: Date;
6
5
  startTime: number;
7
- endTime: number;
8
6
  };
9
7
  type Actions = {
10
8
  setDelay: (delay: number) => void;
11
9
  setStartDate: (startDate: Date) => void;
12
- setEndDate: (endDate: Date) => void;
13
10
  };
14
11
  type LivePlayerStore = State & Actions;
15
12
  type LivePlayerStoreProviderProps = PropsWithChildren & {
16
13
  startDate: Date;
17
- endDate: Date;
18
14
  };
19
- declare const LivePlayerStoreProvider: ({ children, startDate, endDate, }: LivePlayerStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const LivePlayerStoreProvider: ({ children, startDate, }: LivePlayerStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
20
16
  declare const useLivePlayerStore: <T>(selector: (state: LivePlayerStore) => T) => T;
21
17
  export { LivePlayerStoreProvider, useLivePlayerStore };
@@ -1,3 +1,4 @@
1
1
  declare function millisecondsToSeconds(value: number): number;
2
2
  declare const formatTime: (seconds: number) => string;
3
- export { formatTime, millisecondsToSeconds };
3
+ declare function dateToTimeZone(date: Date, timeZone: string): Date;
4
+ export { formatTime, millisecondsToSeconds, dateToTimeZone };
@@ -0,0 +1,2 @@
1
+ declare function getStartDateFromHlsUrl(url: string): Promise<Date | null>;
2
+ export { getStartDateFromHlsUrl };
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.18",
4
+ "version": "0.0.20",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "react",
@@ -55,6 +55,7 @@
55
55
  "@emotion/styled": "^11.14.1",
56
56
  "@radix-ui/react-dropdown-menu": "^2.1.16",
57
57
  "@radix-ui/react-slider": "^1.3.6",
58
+ "date-fns-tz": "^3.2.0",
58
59
  "hls.js": "^1.6.11",
59
60
  "mitt": "^3.0.1",
60
61
  "zustand": "^5.0.8"
@@ -1,2 +0,0 @@
1
- declare function ArrowRightIcon(): import("react/jsx-runtime").JSX.Element;
2
- export { ArrowRightIcon };
@@ -1,2 +0,0 @@
1
- declare function LivePlayerRemainingTime(): import("react/jsx-runtime").JSX.Element | null;
2
- export { LivePlayerRemainingTime };