i'm trying to get a RTSP stream inside a webpage, but with no success actually.
For this I followed exactly the tutorial of JSMpeg : https://github.com/phoboslab/jsmpeg
With a custom FFMPEG command :
ffmpeg -i "rtsp://myurl/media.smp" \
-vcodec h264 -f mpegts -codec:v mpeg1video -s 1290x980 -b:v 8000k \
-r 25 -max_muxing_queue_size 9999 http://localhost:8081/supersecret
My websocket well receive my connection on it.
But my canvas is still a white square :
The weird thing is when I change the websocket url with a false one, in my code, the canvas turn to black.
So I guess that it turn WHITE when it receive something.
Thansk for help