-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GITBOOK-451: Added concludeHlsLive API
- Loading branch information
1 parent
5b116f5
commit d7ced77
Showing
4 changed files
with
110 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
docs/rest-api/v1/virtualhost/application/stream/conclude-hls-live.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# Conclude HLS Live | ||
|
||
For live streaming of certain events, it may be necessary to immediately stop the HLS live stream and switch to VoD after the HLS live broadcast ends. This API transitions to VoD by stopping segment updates for LL-HLS and HLS streams and inserting #EXT-X-ENDLIST. By using this API with a [Scheduled Channel](../../../../../live-source/scheduled-channel.md), you can implement additional application services. | ||
|
||
> ### Request | ||
<details> | ||
|
||
<summary><mark style="color:blue;">POST</mark> v1/vhosts/{vhost}/apps/{app}/streams/{stream}:concludeHlsLive</summary> | ||
|
||
#### Header | ||
|
||
```http | ||
Authorization: Basic {credentials} | ||
# Authorization | ||
Credentials for HTTP Basic Authentication created with <AccessToken> | ||
``` | ||
|
||
#### Body | ||
|
||
```json | ||
{} | ||
``` | ||
|
||
</details> | ||
|
||
> ### Responses | ||
<details> | ||
|
||
<summary><mark style="color:blue;">200</mark> Ok</summary> | ||
|
||
The request has succeeded | ||
|
||
#### **Header** | ||
|
||
``` | ||
Content-Type: application/json | ||
``` | ||
|
||
#### **Body** | ||
|
||
```json | ||
{ | ||
"statusCode": 200, | ||
"message": "OK", | ||
} | ||
|
||
# statusCode | ||
Same as HTTP Status Code | ||
# message | ||
A human-readable description of the response code | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
<summary><mark style="color:red;">400</mark> Bad Request</summary> | ||
|
||
Invalid request. Body is not a Json Object or does not have a required value | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
<summary><mark style="color:red;">401</mark> Unauthorized</summary> | ||
|
||
Authentication required | ||
|
||
#### **Header** | ||
|
||
```http | ||
WWW-Authenticate: Basic realm=”OvenMediaEngine” | ||
``` | ||
|
||
#### **Body** | ||
|
||
```json | ||
{ | ||
"message": "[HTTP] Authorization header is required to call API (401)", | ||
"statusCode": 401 | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
<summary><mark style="color:red;">404</mark> Not Found</summary> | ||
|
||
The given vhost name or app name could not be found. | ||
|
||
#### **Body** | ||
|
||
```json | ||
{ | ||
"statusCode": 404, | ||
"message": "Could not find the application: [default/non-exists] (404)" | ||
} | ||
``` | ||
|
||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters