RTMP Catch stream and play it in unity

Hello, I have created a local rtmp server using nginx. I can stream through OBS and get the stream in VLC through open network stream selection in VLC. I would like to do the same in unity.

More specifically to catch my live video stream being pushed to rtmp server and play the stream in a videoplayer in unity. I’ve been searching for days and I cannot find a solution.

Any ideas?

Hi jgcaptain95,

Did you have any success with this?
I am trying to do the exact same thing now, how should I start?
Any advise would be appreciated.

Thanks,
totalse

I’m in the same boat with an RTSP server (and can serve RTMP). Lots of things seem to be able to turn a Unity game into an RTSP server, but there’s nothing I can find that’ll take an RTSP stream and play it in Unity.

Maybe just use VLC for Unity?

I initially tried this and it gave me a blank screen, but after forcing a slow encoding and RTMP instead of RTSP, it ended up working. The latency is 2-5s, which is to say horrible, but after over a week of no progress this is likely going to be the permanent solution. Thanks for pointing me back to this to reevaluate.

2 Likes