Go to documentation repository
Page History
...
GET http://IP-Address:port/prefix/live/media/{VIDEOSOURCEID}
Tip |
---|
{VIDEOSOURCEID} - — a three-component source endpoint ID (see see Get list of video cameras and information about them). For instance, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0". |
...
Parameter | Required | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
format | No | Parameter values are "mp4", "hls". Video can be received in the original format (without recompression) via HLS protocols. HLS protocol supports only H.264 format. The "mp4" player allows to receive the original video in H.264 and H.265. In all other cases the server recompresses it to MJPEG format.
| ||||||||||
w, h | No | w – frame width, h – frame height.
| ||||||||||
fr | No | fps.
| ||||||||||
enable_token_auth | No | enable_token_auth - auth — enable authorization by token token =1. valid_token_hours - hours — signature validation time (in hours). The maximum value is a week. The default value is 12 hours. | ||||||||||
valid_token_hours | No | |||||||||||
key_frames | No | 1 - — playback only by key frames; 0 - — original frame rate (default). |
...
Parameter | Description |
---|---|
keep_alive_seconds | Time in seconds in which the stream is to be kept alive. |
keep_alive_url | The url to keep the stream alive. |
stop_url | The url to stop the stream. |
stream_url | The url to access the list of segments. |
Note | ||
---|---|---|
| ||
HLS protocol video becomes available in several seconds after getting the responsewith some delay (about 20 seconds). This is due to a feature of the HLS protocol: after receiving the link, it forms a cache of several video segments, and only after that the video starts playing. |
To playback video via HLS protocol use the stream_url parameter from the response as follows:
...