Hey Guys. Im trying to use the react integration.
Sadly some events of my video arent triggered. Steps to reproduce:
- Define Component:
export const VideoTest = () => {
return (
<video
controls
src={
"https://player.vimeo.com/external/372335193.sd.mp4?s=80151fa22b2eba81883c8641f2c9e493762c7357&profile_id=164&oauth2_token_id=57447761"
}
onLoadStart={() => {
console.log("LoadStart");
}}
onLoadedData={() => {
console.log("LoadedData");
}}
/>
);
};
- Test in React:
import React from 'react';
export function App(props) {
return (
<VideoTest/>
);
}
export const VideoTest = () => {
return (
<video
controls
src={
"https://player.vimeo.com/external/372335193.sd.mp4?s=80151fa22b2eba81883c8641f2c9e493762c7357&profile_id=164&oauth2_token_id=57447761"
}
onLoadStart={() => {
console.log("LoadStart");
}}
onLoadedData={() => {
console.log("LoadedData");
}}
/>
);
};
--> Logs "LoadStart" and "LoadedData"
- Test in Astro
---
import { VideoTest } from "./link/to/component/videoTest.jsx";
---
<html>
...
<body>
<VideoTest></VideoTest>
</body>
</html>
--> Doesnt log nothing :c
Is this expected behaviour or is this a bug?
(currently this is crucial to me, so id also be happy about a workaround)