We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c04fc commit f239058Copy full SHA for f239058
src/index.js
@@ -18,7 +18,6 @@ export default (url) => {
18
useEffect(() => {
19
if (!url) return;
20
const video = document.createElement('video');
21
- video.style.display = 'none';
22
video.addEventListener('loadedmetadata', (e) => {
23
const { videoWidth: width, videoHeight: height, duration } = e.target;
24
setMeta({ width, height, duration });
0 commit comments