From b240b88f81be2fdc1a5506b357eee9bb08869e55 Mon Sep 17 00:00:00 2001 From: Mike Myhalenko Date: Wed, 14 Jul 2021 11:55:51 +0300 Subject: [PATCH] add mjpeg back --- source/index.html.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/source/index.html.md b/source/index.html.md index 656a47c2f18..7c66666a118 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -535,6 +535,32 @@ curl "https://my.timeline.is/api/v3p/lpr_plates/:id" -H "Authorization: Bearer Y +# Live + +## Get MJPEG live stream from a camera + +This endpoint returns MJPEG live stream from a camera. + +### HTTP Request +`GET https://my.timeline.is/live/:zone_id/stream?token=timeline_api_token` + +**Parameters** + +| Name | Located in | Description | Required | Type | +| ---- | ---------- | ----------- | -------- | ---- | +| token | query | Timeline API_token | No | String | + + +```shell +curl "https://my.timeline.is/live/:zone_id/stream?token=timeline_api_token" +``` + +```shell +curl "https://my.timeline.is/live/:zone_id/stream" -H "Authorization: Bearer YOUR_OAUTH_TOKEN" + +``` + + # Perspectives ## Get all presets