deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.17k stars 284 forks source link

Play rtsp on custom interface in browser #387

Open nav232 opened 9 months ago

nav232 commented 9 months ago

Hi, after going through this awesome project i was wondering if there is any way i can play an rtsp stream on my custom interface in a browser and if so, how can i accomplish that? P.S. i am unfamilier with go so any help is welcome

NicoCaldo commented 9 months ago

RTSP is not supported by the web. This project converst the RTSP flow to several flows usable on the web

API documentation is what you're looking for

nav232 commented 9 months ago

i have gone through the api documentation and my main question is after adding the stream , i want to see a particular channel displayed in webrtc format

NicoCaldo commented 9 months ago

i have gone through the api documentation and my main question is after adding the stream , i want to see a particular channel displayed in webrtc format

Everything is written in the documentation https://github.com/deepch/RTSPtoWeb/blob/master/docs/api.md#webrtc

You can also see the stream in Streams List or adding it to Full multiview

nav232 commented 9 months ago

what i am unable to grasp from the documentation is how to play a stream that has been added in streams list on custom made interface not on the provided dashboard. Please help me in this matter

NicoCaldo commented 9 months ago

You need to build or use your own interface.

This module offer you the URL for the stream in webRTC, you need something to show it

nav232 commented 9 months ago

I do have an interface of my own from where i can add , update, delete a stream and channels. But i do not have clarity even after going through the docs about how to play any particular stream(esp in webrtc format) in my interface. Please elaborate on this if you will.