We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12983cd commit a7455f5Copy full SHA for a7455f5
src/Video/Video.tsx
@@ -20,10 +20,14 @@ export interface VideoProps extends InputProps {
20
}
21
22
export const Video: FC<VideoProps> = ({ label, testId }) => {
23
+ let vpInstance:VideoPlayer;
24
useEffect(() => {
25
const el = document.querySelector('video');
26
if (el) {
- 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);
31
32
});
33
return (
0 commit comments