@banou/media-player 0.4.7 → 0.5.1

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
@@ -1,3 +1,6 @@
1
1
  ## Media Player
2
2
 
3
3
  A player that somehow manages to playback MKV files
4
+
5
+
6
+ Todo: add support for multi audio tracks
@@ -1,4 +1,7 @@
1
- import { type HTMLAttributes } from 'react';
2
- export type ChromeOptions = {} & HTMLAttributes<HTMLDivElement>;
3
- export declare const Chrome: ({ children }: ChromeOptions) => import("react/jsx-runtime").JSX.Element;
1
+ import { ReactNode, type HTMLAttributes } from 'react';
2
+ export type ChromeOptions = {
3
+ mediaInformation?: ReactNode;
4
+ loadingInformation?: ReactNode;
5
+ } & HTMLAttributes<HTMLDivElement>;
6
+ export declare const Chrome: ({ children, mediaInformation, loadingInformation }: ChromeOptions) => import("react/jsx-runtime").JSX.Element;
4
7
  export default Chrome;
@@ -1,5 +1,6 @@
1
- import { RefObject } from 'react';
2
- export declare const ControlBar: ({ containerRef }: {
1
+ import { ReactNode, RefObject } from 'react';
2
+ export declare const ControlBar: ({ mediaInformation, containerRef }: {
3
+ mediaInformation?: ReactNode;
3
4
  containerRef: RefObject<HTMLDivElement>;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
5
6
  export default ControlBar;
@@ -1 +1,4 @@
1
- export declare const Overlay: () => import("react/jsx-runtime").JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ export declare const Overlay: ({ loadingInformation }: {
3
+ loadingInformation?: ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element;
package/build/index.d.ts CHANGED
@@ -6,6 +6,9 @@ export type FKNVideoOptions = {
6
6
  read?: (offset: number, size: number) => Promise<ArrayBuffer>;
7
7
  size?: number;
8
8
  bufferSize?: number;
9
+ autoplay?: boolean;
10
+ mediaInformation?: ReactNode;
11
+ loadingInformation?: ReactNode;
9
12
  publicPath: string;
10
13
  jassubWorkerUrl: string;
11
14
  jassubWasmUrl: string;