From 2b5dfd28b4be70916f7ba48b01881d26f06cbb65 Mon Sep 17 00:00:00 2001 From: Andrea Stagi Date: Fri, 29 Nov 2024 00:19:58 +0100 Subject: [PATCH] fix: use correct types --- src/Video/Video.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Video/Video.tsx b/src/Video/Video.tsx index 4f52e7808..c8102a77c 100644 --- a/src/Video/Video.tsx +++ b/src/Video/Video.tsx @@ -20,10 +20,14 @@ export interface VideoProps extends InputProps { } export const Video: FC = ({ label, testId }) => { + let vpInstance:VideoPlayer; useEffect(() => { const el = document.querySelector('video'); if (el) { - new VideoPlayer(el); + vpInstance = new VideoPlayer(el); + setTimeout(() => { + console.log(vpInstance.player.log) // Con .player puoi usare play(), stop() ecc .. + }, 3000); } }); return (