Skip to main content
Skip table of contents

RTSPController

Last updated: 2025/3/7 11:12:35

Path To

Name

Description/Function

/api/rtsp

/get

Get the current configuration.

/api/rtsp

/update

Update the streaming settings.

/get

Function

Get the current configuration.

Method

Get

Response

All the configuration.

Example

CODE
$ curl http://IP_ADDRESS:8080>/api/rtsp/get

/update

Function

Update the streaming settings.

Method

Post

Body

CODE
{
  "Framerate":"30",
  "Bitrate":"10000",
  "Resolution":"1920x1080"
}

If you do not include a “value” in one or any of the above variables, the default value will be used. i.e. "Resolution":"" will default to “1920x1080”

Response

A representing the asynchronous operation.

Explanation

  • Defaults

    • Framerate = 30

    • Bitrate = 10000

    • Resolution = 1920x1080

  • Available Frame Rate

    • Any

  • Available Bitrate

    • 1000 to 100,000

  • Available Resolution

    • 640 x 480 (SD)

    • 1280 x 720 (720p)

    • 1920x1080 (1080p)

    • 3840 x 2160 (4K)

Example

Example 1

CODE
{
  "Framerate":"30",
  "Bitrate":"1000",
  "Resolution":"1920x1080"
}

Output

CODE
$ curl -X POST http://<ip>:<port>/api/rtsp/update
   -H 'Content-Type: application/json'
   -d '{ "Framerate":"30", "Bitrate":"2000", "Resolution":"1920x1080" }'

Example 2

CODE
{
  "Framerate":"30",
  "Bitrate":"2000",
}

Output

CODE
$ curl -X POST http://<ip>:<port>/api/rtsp/update
   -H 'Content-Type: application/json'
   -d '{ "Framerate":"30", "Bitrate":"2000" }'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.