Skip to content

Commit

Permalink
fix: use correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Jan 23, 2025
1 parent 729e9a6 commit 2b5dfd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Video/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ export interface VideoProps extends InputProps {
}

export const Video: FC<VideoProps> = ({ 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 (
Expand Down

0 comments on commit 2b5dfd2

Please sign in to comment.