GetBroadcastUrls
Returns a list of streams with URLs for playing the stream in different formats. Depending on the playback parameters and protocols set, it may contain either all URLs or a part of them.
GET /api/streams/broadcast/
Body | |||||||||
tokenrequired | string | Authorization token for API requests. See Mediaserver/Web API/Authorization/CreateApiToken. |
Response | |||||||||
200 | JSON array with a list of streams with available playback URLs. To play a URL, depending on the type of stream, a token with private authorization type or a login and password for protected is required. | ||||||||
JSON
| |||||||||
url | stream-uid.urls.rtsp_live.url | URL for playing live stream via RTSP protocol. | |||||||
url | stream-uid.urls.rtsp_dvr.url | URL for playing DVR stream via RTSP protocol. In the subsequent request, it is necessary to specify the timestamp of the start of playback. | |||||||
url | stream-uid.urls.hls_live.url | URL for playing live stream via HLS. | |||||||
url | stream-uid.urls.hls_dvr.url | URL for playing DVR stream via HLS. In the subsequent request, it is necessary to specify the timestamp of the start of playback. | |||||||
url | stream-uid.urls.hls_live_ios.url | URL for playing live stream via HLS and WebSocket protocol. | |||||||
url | stream-uid.urls.hls_dvr_io.url | URL for playing DVR stream via HLS and WebSocket protocol. | |||||||
url | stream-uid.urls.export.url | URL for requesting export of DVR archive to MP4 file. | |||||||
url | stream-uid.urls.preview.url | URL for requesting the last frame of Live (preview stream). The frame is provided in MP4 format. | |||||||
url | stream-uid.urls.screenshot.url | URL for requesting an arbitrary frame of DVR archive. The frame is provided in MP4 format. | |||||||
403 | Authorization error. Invalid or missing access token for API. See Mediaserver/Web API/Authorization/CreateApiToken for details. |
Example | |||||||||
JSON
|