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.