Skip to content

Commit a7455f5

Browse files
committed
fix: use correct types
1 parent 12983cd commit a7455f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Video/Video.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ export interface VideoProps extends InputProps {
2020
}
2121

2222
export const Video: FC<VideoProps> = ({ label, testId }) => {
23+
let vpInstance:VideoPlayer;
2324
useEffect(() => {
2425
const el = document.querySelector('video');
2526
if (el) {
26-
new VideoPlayer(el);
27+
vpInstance = new VideoPlayer(el);
28+
setTimeout(() => {
29+
console.log(vpInstance.player.log) // Con .player puoi usare play(), stop() ecc ..
30+
}, 3000);
2731
}
2832
});
2933
return (

0 commit comments

Comments
 (0)