Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subtitle in video creation payload #239

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/model/VideoCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**title** | **string** | The title of your new video. |
**subtitle** | **string** | A subtitle for your video. | [optional]
**description** | **string** | A brief description of your video. | [optional]
**source** | **string** | You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create. | [optional]
**_public** | **boolean** | Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management) | [optional]
Expand Down
10 changes: 10 additions & 0 deletions src/model/VideoCreationPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export default class VideoCreationPayload {
* The title of your new video.
*/
'title': string;
/**
* A subtitle for your video.
*/
'subtitle'?: string;
/**
* A brief description of your video.
*/
Expand Down Expand Up @@ -79,6 +83,12 @@ export default class VideoCreationPayload {
type: 'string',
format: '',
},
{
name: 'subtitle',
baseName: 'subtitle',
type: 'string',
format: '',
},
{
name: 'description',
baseName: 'description',
Expand Down
Loading