mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
fix: usePlayer exports and TS definition
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
parent
5d5c28b118
commit
e66c383e23
2 changed files with 2 additions and 2 deletions
2
src/routes/Player/usePlayer.d.ts
vendored
2
src/routes/Player/usePlayer.d.ts
vendored
|
|
@ -1,2 +1,2 @@
|
|||
declare const usePlayer: (urlParams: UrlParams, videoParams: { hash: string | null, size: number | null, filename: string | null } | null | undefined) => [Player, (videoParams: { hash: string | null, size: number | null, filename: string | null }) => void, (time: number, duration: number, device: string) => void, (time: number, duration: number, device: string) => void, (paused: boolean) => void, () => void, () => void,];
|
||||
declare const usePlayer: (urlParams: UrlParams) => [Player, (videoParams: { hash: string | null, size: number | null, filename: string | null }) => void, (time: number, duration: number, device: string) => void, (time: number, duration: number, device: string) => void, (paused: boolean) => void, () => void, () => void,];
|
||||
export = usePlayer;
|
||||
|
|
@ -143,7 +143,7 @@ const usePlayer = (urlParams) => {
|
|||
}, []);
|
||||
|
||||
const player = useModelState({ model: 'player', action, map });
|
||||
return [player, videoParamsChanged, timeChanged, pausedChanged, ended, nextVideo, seek];
|
||||
return [player, videoParamsChanged, timeChanged, seek, pausedChanged, ended, nextVideo];
|
||||
};
|
||||
|
||||
module.exports = usePlayer;
|
||||
|
|
|
|||
Loading…
Reference in a new issue