Streaming player is not working in react js

I am a bit of a nobo. I am building an on-demand video website using react js and trying to use Cloudflare Streaming API for playing the video, but the problem is it is not loading the video and showing the following message: “Failed to load video. You may not have permission to view it or a network error has occurred”. I have also tried using the video link in some other players but didn’t work. Please help me.

Do you have a code example? If you need a signed token to show your video, you can try using a component like the following:
https://gist.github.com/SimplyBallistic/9f49706f4757c1f8f4ceed28a7731986

Might want to check out the official React component: @cloudflare/stream-react - npm