Finish live stream
PATCH
/api/v1/videostreams/{id}/liveRoles required:
Notify OpenFish that a live video stream has finished. The API takes the current time as the end time.
Parameters
Path Parameters
id*
Video Stream ID
Typeinteger
RequiredExample
1234567890
Responses
OK
PATCH
/api/v1/videostreams/{id}/liveSamples
cURL
curl -X PATCH https://openfish.appspot.com/api/v1/videostreams/{id}/live
JavaScript
fetch("https://openfish.appspot.com/api/v1/videostreams/{id}/live", { method: "PATCH" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://openfish.appspot.com/api/v1/videostreams/{id}/live");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("https://openfish.appspot.com/api/v1/videostreams/{id}/live")
print(response.json())