Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • rtsp - Plain unencrypted RTSP

  • rtsph - Unencrypted RTSP over HTTP

  • rtsphs - Encrypted RTSP over HTTPS

  • rtspws - Unencrypted RTSP over WebSocket

  • rtspwss - RTSP over WebSocket Secure

Security of access to live stream

An API query for a streaming URL generates an RTSP link that is valid for 30 seconds. After 30 seconds or disconnecting the player, it will not be possible to connect the player and the application must request a new RTSP link.

Player

To playback live video from the platform we recommend using our web player(link) available in GitLab repository. The player uses a combination of WebSocket Secure and RTSP and is suitable for playing videos anywhere on the internet.

Example - find available profiles:

This example shows how to get a video stream for remote player. Most cameras allow streaming of different profiles (resolution and capture).

...

Code Block
{
  "data": {
    "camera": {
      "stream_profiles": [
        {
          "stream_profile_id": 120846,
          "width": 800,
          "height": 450
        },
        {
          "stream_profile_id": 120850,
          "width": 1920,
          "height": 1080
        }
      ]
    }
  }
}

Example - get RTSP URL:

The next query gets the RTSP and URL for the currently generated RTSP stream:

...