All URIs are relative to https://ws.api.video.
Method | Description | HTTP request |
---|---|---|
upload() | Upload a chapter | POST /videos/{videoId}/chapters/{language} |
get() | Retrieve a chapter | GET /videos/{videoId}/chapters/{language} |
delete() | Delete a chapter | DELETE /videos/{videoId}/chapters/{language} |
list() | List video chapters | GET /videos/{videoId}/chapters |
Upload a VTT file to add chapters to your video.
Chapters help break the video into sections. Read our tutorial for more details.
Name | Type | Description | Notes |
---|---|---|---|
videoId |
string | The unique identifier for the video you want to upload a chapter for. | |
language |
string | A valid BCP 47 language representation. | |
file |
\SplFileObject | The VTT file describing the chapters you want to upload. |
\ApiVideo\Client\Model\Chapter
Retrieve a chapter for by video id in a specific language.
Name | Type | Description | Notes |
---|---|---|---|
videoId |
string | The unique identifier for the video you want to show a chapter for. | |
language |
string | A valid BCP 47 language representation. |
\ApiVideo\Client\Model\Chapter
Delete a chapter in a specific language by providing the video ID for the video you want to delete the chapter from and the language the chapter is in.
Name | Type | Description | Notes |
---|---|---|---|
videoId |
string | The unique identifier for the video you want to delete a chapter from. | |
language |
string | A valid BCP 47 language representation. |
void (empty response body)
Retrieve a list of all chapters for by video id.
Name | Type | Description | Notes |
---|---|---|---|
videoId |
string | The unique identifier for the video you want to retrieve a list of chapters for. | |
queryParams |
array | (see below) |
Note: queryParams
argument is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
currentPage |
int | Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1] |
pageSize |
int | Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25] |