Create a free ticket and our support team will provide you necessary assistance.
This section describes Storm’s RESTful API regarding stream creation and management.
| Request type | GET |
| URL | /rest-api/applications/${APPLICATION_NAME}/${STREAM_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| streamName | Stream name |
| connections | Number of viewer connections. |
| download | Download speed for this application (all incoming streams). |
| upload | Upload speed for this application (all viewer connections). |
| startDate | Start date for this application in Unix time. |
| state |
Current state of the stream. Possible values: INITIALIZED – stream has been just initialized, RUNNING – stream is running, HIBERNATED – stream is hibernated, CLOSED – stream is closed and it’s about to be removed, CLOSING – stream is being closed |
| sourceType |
Type of source: Possible values: RTMP_SERVER – stream was pushed to the server RTMP_CLIENT – stream was pulled from different RTMP server |
| Request type | DELETE |
| URL | /rest-api/applications/${APPLICATION_NAME}/${STREAM_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| command | Repeats command from Request Data. |
| Request type | PUT |
| Request Data |
|
| URL | /rest-api/applications/${APPLICATION_NAME}/${STREAM_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| command | Repeats command from Request Data. |
| Request type | PUT |
| Request Data |
|
| URL | /rest-api/applications/${APPLICATION_NAME}/${STREAM_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| command | Repeats command from Request Data. |
| newStreamName | New name for the stream. |
| Request type | PUT |
| Request Data |
|
| URL | /rest-api/applications/${APPLICATION_NAME}/${STREAM_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| command | Repeats command from Request Data. |
| copyStreamName | Name of a copied stream. |
| targetApplication | Name of application where copied stream should be added. |
| Request type | PUT |
| Request Data | For push style stream: |
|
|
| For pull style stream: | |
|
|
| URL | /rest-api/applications/${APPLICATION_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| command | Repeats command from Request Data. |
| streamName | Stream name |
| type |
Possible values: push – for most popular broadcasters/encoders like obs, xsplit. (server receives data) pull – for pulling stream from a different RTMP-server. |
| serverURL |
Only for “pull” type streams. Contains path to a RTMP server with application
in following format: “rtmp://”+hostname+”/”+applicationName |
| streamKey | Stream key |
| authorization |
Contains authorization data for stream. For push-type stream publishing will be
restricted to provided credentials or token. In case of pull-type stream
credentials will be used for authenticating connection. Possible variants: 1. Credentials:
2. Token:
|
| Request type | PUT |
| Request Data |
|
| URL | /rest-api/applications/${APPLICATION_NAME}/${STREAM_NAME} |
| Answer |
HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
| command | Repeats command from Request Data. |
| serverURL |
Only for “pull” type streams. Contains path to a RTMP server with application in
following format: “rtmp://”+hostname+”/”+applicationName |
| streamKey | Stream name |
| authorization |
Contains authorization data for stream. Possible variants: 1. Credentials:
2. Token:
|
Create a free ticket and our support team will provide you necessary assistance.