I'm trying to use react-video-recorder in my app. I see the demos, both in Stackblitz and the Storybook in Vercel. Both works just fine in my browsers.
But when I implement it in my code, it just shows the component, asks for mic and cam permissions, and then it's stuck at "Loading...". My camera LED lights up for a few seconds, and turns back off.
I installed the package using the recommended method (yarn add react-video-recorder react react-dom prop-types styled-components). I have Node v16.14.2, React v18.1.0 and react-scripts v5.
I just wrote a very basic implementation of React Video Recorder. Like this:
import VideoRecorder from "react-video-recorder"
export default function CreateMyIntro () {
return (
<VideoRecorder />
)
}
What do I do wrong?