Skip to content

Commit 0ce2180

Browse files
Add subtitle in video creation payload
1 parent 24aa385 commit 0ce2180

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/Model/VideoCreationPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**title** | **string** | The title of your new video. |
8+
**subtitle** | **string** | A subtitle for your video. | [optional]
89
**description** | **string** | A brief description of your video. | [optional]
910
**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]
1011
**public** | **bool** | 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] [default to true]

src/Model/VideoCreationPayload.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static function getDefinition(): ModelDefinition
3232
'video-creation-payload',
3333
[
3434
'title' => 'string',
35+
'subtitle' => 'string',
3536
'description' => 'string',
3637
'source' => 'string',
3738
'public' => 'bool',
@@ -49,6 +50,7 @@ public static function getDefinition(): ModelDefinition
4950
],
5051
[
5152
'title' => null,
53+
'subtitle' => null,
5254
'description' => null,
5355
'source' => null,
5456
'public' => null,
@@ -66,6 +68,7 @@ public static function getDefinition(): ModelDefinition
6668
],
6769
[
6870
'title' => 'title',
71+
'subtitle' => 'subtitle',
6972
'description' => 'description',
7073
'source' => 'source',
7174
'public' => 'public',
@@ -83,6 +86,7 @@ public static function getDefinition(): ModelDefinition
8386
],
8487
[
8588
'title' => 'setTitle',
89+
'subtitle' => 'setSubtitle',
8690
'description' => 'setDescription',
8791
'source' => 'setSource',
8892
'public' => 'setPublic',
@@ -100,6 +104,7 @@ public static function getDefinition(): ModelDefinition
100104
],
101105
[
102106
'title' => 'getTitle',
107+
'subtitle' => 'getSubtitle',
103108
'description' => 'getDescription',
104109
'source' => 'getSource',
105110
'public' => 'getPublic',
@@ -117,6 +122,7 @@ public static function getDefinition(): ModelDefinition
117122
],
118123
[
119124
'title' => null,
125+
'subtitle' => null,
120126
'description' => null,
121127
'source' => null,
122128
'public' => null,
@@ -245,6 +251,7 @@ public function getTranscriptSummaryAttributesAllowableValues()
245251
public function __construct(array $data = null)
246252
{
247253
$this->container['title'] = $data['title'] ?? null;
254+
$this->container['subtitle'] = $data['subtitle'] ?? null;
248255
$this->container['description'] = $data['description'] ?? null;
249256
$this->container['source'] = $data['source'] ?? null;
250257
$this->container['public'] = $data['public'] ?? true;
@@ -321,6 +328,30 @@ public function setTitle($title)
321328
return $this;
322329
}
323330

331+
/**
332+
* Gets subtitle
333+
*
334+
* @return string|null
335+
*/
336+
public function getSubtitle()
337+
{
338+
return $this->container['subtitle'];
339+
}
340+
341+
/**
342+
* Sets subtitle
343+
*
344+
* @param string|null $subtitle A subtitle for your video.
345+
*
346+
* @return self
347+
*/
348+
public function setSubtitle($subtitle)
349+
{
350+
$this->container['subtitle'] = $subtitle;
351+
352+
return $this;
353+
}
354+
324355
/**
325356
* Gets description
326357
*

0 commit comments

Comments
 (0)