Is there a way to fetch an RTMP live video stream to a simple browser created on REACT?. I have tried various methods including the one with Video.js. But I get an error like "No compatible sources found for this media" and some other times the player is stuck in a kind of buffering situation with no data. I just need the data from the RTMP link to be like in a simple video player. Any Solutions? Thank You.
Asked
Active
Viewed 1,891 times
0
-
I also did the html video tags like : `` – Roshan Daniel Nov 10 '21 at 07:20
-
Flash Is required to play RTMP in a browser, and browsers no longer support Flash. – misterben Nov 12 '21 at 06:56
-
Yeah, I saw that on many docs. However is it possible to convert this into an HLS output? Then I just need to code a browser that can play HLS right? – Roshan Daniel Nov 12 '21 at 09:04
1 Answers
0
It's not able to play RTMP on REACT H5 video player, you need a media server to covert to HTTP-FLV/HLS/WebRTC, please read this post.
These protocols introduce different lagging, HTTP-FLV is most likely RTMP about 1~3s latency, while HLS is about 5~10s, and WebRTC is the most realtime about 0.6~1s.

Winlin
- 1,136
- 6
- 25