Get video stream media
GET
/api/v1/videostreams/{id}/mediaRoles required:
Gets the image or video snippet from this video stream at the given time.
Parameters
Header Parameters
Accepts*
Accepts
Typestring
RequiredExample
image/jpeg
Path Parameters
id*
Video Stream ID
Typeinteger
RequiredExample
1234567890
Query Parameters
time*
Time
Typestring
RequiredExample
00:00:01.000-00:00:05.500
Responses
Found
GET
/api/v1/videostreams/{id}/mediaSamples
cURL
curl -X GET https://openfish.appspot.com/api/v1/videostreams/{id}/media
JavaScript
fetch("https://openfish.appspot.com/api/v1/videostreams/{id}/media")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/videostreams/{id}/media");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/videostreams/{id}/media")
print(response.json())