How to Display Live Streams for Cloud Accounts?
AnsweredHi there,
We are trying to display the live camera streams in a web application, and we can do so for local users because they have RTSP streams we can access. However, for cloud accounts we cannot use the same method of constructing the RTSP URL. We were wondering if there was another method for accessing the streams so we can display them on HTML?
Thanks for your help!
-
Hello,
If I understood your question right, this article might help you
-
Andrey Terentyev, we do not have RTSP/RTP proxy server. So you cannot get the RTP vial cloud API.
Dylan is asking for alternatives such as WebRTC/HLS.
Can you please explain those? -
Hello,
Thanks, Sergey.
Indeed, we don't have possibility to get an RTSP stream via the cloud proxy server. My bad.
At the moment, the following media interfaces are available via the cloud proxy.
- HTTP Streaming - /media/{deviceId}.{format}
- HLS Streaming - /hls/{deviceId}.m3u
- WebRTC
The API details for these interfaces can be found in the Media API Documentation
https://nxvms.com/doc/developers/api-tool/media-1?type=1
Regarding the WebRTC the following should be mentioned. There are two endpoints.
wss://<server_ip>:<port>/webrtc-tracker/?camera_id=12AB42FD5912
It's used for communicating with WebRTC tracker for receiving a video stream.
https://<server_ip>:<port>/webrtc/?camera_id=12AB42FD5912&position=1674240507000000
It's an endpoint to a WebRTC web player provided by the Server. The endpoint can be opened in a browser and can be used for embedding video into a web page. The player uses wss:// interface under the hood.
-
Dylan,
I would suggest checking Meida api options form here
https://nxvms.com/doc/developers/api-tool/media-1
such as this one
https://nxvms.com/doc/developers/api-tool/webrtc-tracker--get?type=1&system=4
in combination with the cloud, API Andrey mentioned.
If you can let us know which one worked for you - that would be fantastic.
Please sign in to leave a comment.
Comments
4 comments