diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4b13d23..0fbc470 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.
+## [1.4.8] - 2025-01-27
+- Add subtitle attribute in video creation payload
+
## [1.4.7] - 2024-11-06
- AI summary updates
diff --git a/README.md b/README.md
index 309e970..8b15f67 100644
--- a/README.md
+++ b/README.md
@@ -70,7 +70,7 @@ Add this dependency to your project's POM:
video.api
java-api-client
- 1.4.7
+ 1.4.8
compile
```
@@ -80,7 +80,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
-implementation "video.api:java-api-client:1.4.7"
+implementation "video.api:java-api-client:1.4.8"
```
#### Others
@@ -93,7 +93,7 @@ mvn clean package
Then manually install the following JARs:
-* `target/java-api-client-1.4.7.jar`
+* `target/java-api-client-1.4.8.jar`
* `target/lib/*.jar`
### Code sample
diff --git a/api/openapi.yaml b/api/openapi.yaml
index e55c2fd..57df863 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -16680,6 +16680,10 @@ components:
description: The title of your new video.
example: Maths video
type: string
+ subtitle:
+ description: A subtitle for your video.
+ example: A great subtitle.
+ type: string
description:
description: A brief description of your video.
example: A video about string theory.
diff --git a/build.gradle b/build.gradle
index b2e8a5f..e0d5ece 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ apply plugin: 'com.diffplug.spotless'
apply plugin: 'maven-publish'
group = 'video.api'
-version = '1.4.7'
+version = '1.4.8'
buildscript {
repositories {
diff --git a/docs/VideoCreationPayload.md b/docs/VideoCreationPayload.md
index 3e12d92..910ff2e 100644
--- a/docs/VideoCreationPayload.md
+++ b/docs/VideoCreationPayload.md
@@ -7,6 +7,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]
diff --git a/docs/VideosApi.md b/docs/VideosApi.md
index dc8709b..2cbf2c2 100644
--- a/docs/VideosApi.md
+++ b/docs/VideosApi.md
@@ -48,6 +48,7 @@ public class Example {
VideoCreationPayload videoCreationPayload = new VideoCreationPayload(); // video to create
videoCreationPayload.setTitle("Maths video"); // The title of your new video.
+ videoCreationPayload.setSubtitle("A great subtitle."); // A subtitle for your video.
videoCreationPayload.setDescription("A video about string theory."); // A brief description of your video.
videoCreationPayload.setSource("https://www.myvideo.url.com/video.mp4 OR vi4k0jvEUuaTdRAEjQ4JfOyl"); // 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.
videoCreationPayload.setPublic(true); // 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)
diff --git a/pom.xml b/pom.xml
index 5ff4367..0ac4238 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
java-api-client
jar
${project.groupId}:${project.artifactId}
- 1.4.7
+ 1.4.8
https://github.com/apivideo/api.video-java-client
api.video Java API client
diff --git a/src/main/java/video/api/client/api/ApiClient.java b/src/main/java/video/api/client/api/ApiClient.java
index 611b397..936b2dd 100644
--- a/src/main/java/video/api/client/api/ApiClient.java
+++ b/src/main/java/video/api/client/api/ApiClient.java
@@ -120,7 +120,7 @@ private OkHttpClient initHttpClient(List interceptors) {
private void init() {
verifyingSsl = true;
json = new JSON();
- addDefaultHeader("AV-Origin-Client", "java:1.4.7");
+ addDefaultHeader("AV-Origin-Client", "java:1.4.8");
}
private boolean isValid(String regex, String field) {
diff --git a/src/main/java/video/api/client/api/models/VideoCreationPayload.java b/src/main/java/video/api/client/api/models/VideoCreationPayload.java
index a8fc83a..1a205c1 100644
--- a/src/main/java/video/api/client/api/models/VideoCreationPayload.java
+++ b/src/main/java/video/api/client/api/models/VideoCreationPayload.java
@@ -39,6 +39,10 @@ public class VideoCreationPayload implements Serializable, DeepObject {
@SerializedName(SERIALIZED_NAME_TITLE)
private String title;
+ public static final String SERIALIZED_NAME_SUBTITLE = "subtitle";
+ @SerializedName(SERIALIZED_NAME_SUBTITLE)
+ private String subtitle;
+
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
@@ -277,6 +281,27 @@ public void setTitle(String title) {
this.title = title;
}
+ public VideoCreationPayload subtitle(String subtitle) {
+ this.subtitle = subtitle;
+ return this;
+ }
+
+ /**
+ * A subtitle for your video.
+ *
+ * @return subtitle
+ **/
+ @javax.annotation.Nullable
+ @ApiModelProperty(example = "A great subtitle.", value = "A subtitle for your video.")
+
+ public String getSubtitle() {
+ return subtitle;
+ }
+
+ public void setSubtitle(String subtitle) {
+ this.subtitle = subtitle;
+ }
+
public VideoCreationPayload description(String description) {
this.description = description;
return this;
@@ -625,6 +650,7 @@ public boolean equals(Object o) {
}
VideoCreationPayload videoCreationPayload = (VideoCreationPayload) o;
return Objects.equals(this.title, videoCreationPayload.title)
+ && Objects.equals(this.subtitle, videoCreationPayload.subtitle)
&& Objects.equals(this.description, videoCreationPayload.description)
&& Objects.equals(this.source, videoCreationPayload.source)
&& Objects.equals(this._public, videoCreationPayload._public)
@@ -643,8 +669,8 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(title, description, source, _public, panoramic, mp4Support, playerId, tags, metadata, clip,
- watermark, language, transcript, transcriptSummary, transcriptSummaryAttributes);
+ return Objects.hash(title, subtitle, description, source, _public, panoramic, mp4Support, playerId, tags,
+ metadata, clip, watermark, language, transcript, transcriptSummary, transcriptSummaryAttributes);
}
@Override
@@ -652,6 +678,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VideoCreationPayload {\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" subtitle: ").append(toIndentedString(subtitle)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" _public: ").append(toIndentedString(_public)).append("\n");