Skip to content

Commit 45aedb9

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent dd1146d commit 45aedb9

File tree

144 files changed

+6309
-609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+6309
-609
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2025-02-13 Bumped to version v1.0.205
4+
- Updated apis for live/imp/tls/livesaas/vikingDB/translate
5+
36
2025-02-06 Bumped to version v1.0.204
47
- Updated apis for livesaas
58

example/src/main/java/com/volcengine/example/imp/job/ImpSubmitJobByJobDemo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public static void main(String[] args) throws Exception {
3030
Job.Builder job = Job.newBuilder();
3131
TranscodeVideoJob.Builder transcodeVideoJob = TranscodeVideoJob.newBuilder();
3232
Video.Builder video = Video.newBuilder();
33-
video.setCodec("h264");
33+
video.setCodec("your video codec");
3434
video.setBitrate(4000);
3535
Audio.Builder audio = Audio.newBuilder();
36-
audio.setCodec("aac");
36+
audio.setCodec("your audio codec");
3737
audio.setBitrate(128);
3838
audio.setChannels(2);
39-
transcodeVideoJob.setContainer("MP4");
39+
transcodeVideoJob.setContainer("your container");
4040
transcodeVideoJob.setVideo(video.build());
4141
transcodeVideoJob.setAudio(audio.build());
4242
job.setTranscodeVideo(transcodeVideoJob.build());
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class CreateLivePadPresetExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
CreateLivePadPresetBody body = new CreateLivePadPresetBody();
14+
15+
try {
16+
CreateLivePadPresetRes resp = service.createLivePadPreset(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class DeleteLivePadPresetExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
DeleteLivePadPresetBody body = new DeleteLivePadPresetBody();
14+
15+
try {
16+
DeleteLivePadPresetRes resp = service.deleteLivePadPreset(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class DescribeLiveEdgeStatDataExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
DescribeLiveEdgeStatDataBody body = new DescribeLiveEdgeStatDataBody();
14+
15+
try {
16+
DescribeLiveEdgeStatDataRes resp = service.describeLiveEdgeStatData(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class DescribeLivePadPresetDetailExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
DescribeLivePadPresetDetailBody body = new DescribeLivePadPresetDetailBody();
14+
15+
try {
16+
DescribeLivePadPresetDetailRes resp = service.describeLivePadPresetDetail(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class DescribeLivePadStreamListExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
DescribeLivePadStreamListBody body = new DescribeLivePadStreamListBody();
14+
15+
try {
16+
DescribeLivePadStreamListRes resp = service.describeLivePadStreamList(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class StopLivePadStreamExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
StopLivePadStreamBody body = new StopLivePadStreamBody();
14+
15+
try {
16+
StopLivePadStreamRes resp = service.stopLivePadStream(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.volcengine.example.live.v20230101;
2+
3+
4+
import com.volcengine.model.live.v20230101.*;
5+
import com.volcengine.service.live.v20230101.LiveService;
6+
7+
public class UpdateLivePadPresetExample {
8+
public static void main(String[] args) {
9+
LiveService service = LiveService.getInstance();
10+
service.setAccessKey("ak");
11+
service.setSecretKey("sk");
12+
13+
UpdateLivePadPresetBody body = new UpdateLivePadPresetBody();
14+
15+
try {
16+
UpdateLivePadPresetRes resp = service.updateLivePadPreset(body);
17+
System.out.println(resp);
18+
} catch (Exception e) {
19+
e.printStackTrace();
20+
}
21+
}
22+
}

example/src/main/java/com/volcengine/example/translate/TranslateDemo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ public static void main(String[] args) {
4141
} catch (Exception e) {
4242
e.printStackTrace();
4343
}
44+
45+
translateService.destroy();
4446
}
4547
}

volc-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.volcengine</groupId>
7-
<version>1.0.204</version>
7+
<version>1.0.205</version>
88
<artifactId>volc-sdk-java</artifactId>
99

1010
<name>volc-sdk-java</name>

volc-sdk-java/src/main/java/com/volcengine/model/live/v20230101/BindCertBody.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ public final class BindCertBody {
5959
@com.alibaba.fastjson.annotation.JSONField(name = "MinTLSVersion")
6060
private String minTLSVersion;
6161

62+
/**
63+
* <p>是否开启 HTTP/2 协议,默认为 `false`。取值如下:</p>
64+
*
65+
* <p>- `false`: 关闭 HTTP/2 协议。</p>
66+
*
67+
* <p>- `true`: 开启 HTTP/2 协议。</p>
68+
*/
69+
@com.alibaba.fastjson.annotation.JSONField(name = "HTTP2")
70+
private Boolean hTTP2;
71+
6272
@Override
6373
public String toString() {
6474
return JSON.toJSONString(this);
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
package com.volcengine.model.live.v20230101;
2+
3+
4+
import com.alibaba.fastjson.JSON;
5+
6+
/**
7+
* CreateLivePadPresetBody
8+
*/
9+
@lombok.Data
10+
public final class CreateLivePadPresetBody {
11+
12+
/**
13+
* <p>配置的描述信息,最大支持 1024 个字节的输入。</p>
14+
*/
15+
@com.alibaba.fastjson.annotation.JSONField(name = "Description")
16+
private String description;
17+
18+
/**
19+
* <p>垫片类型,取值及含义如下所示。</p>
20+
*
21+
* <p>- `1`:图片;</p>
22+
*
23+
* <p>- `2`:视频;</p>
24+
*
25+
* <p>- `3`:源流最后一帧。</p>
26+
*/
27+
@com.alibaba.fastjson.annotation.JSONField(name = "PadType")
28+
private Integer padType;
29+
30+
/**
31+
* <p>断流等待时间,即直播断流后等待播放垫片的时长,单位为毫秒,取值范围:0-6000。</p>
32+
*/
33+
@com.alibaba.fastjson.annotation.JSONField(name = "WaitDuration")
34+
private Long waitDuration;
35+
36+
/**
37+
* <p>垫片最大播放时长,单位为毫秒,取值范围为 [1000-1,000,000,000]。</p>
38+
*/
39+
@com.alibaba.fastjson.annotation.JSONField(name = "MaxDuration")
40+
private Long maxDuration;
41+
42+
/**
43+
* <p>垫片素材地址。当垫片类型为最后一帧时不生效。</p>
44+
*/
45+
@com.alibaba.fastjson.annotation.JSONField(name = "Url")
46+
private String url;
47+
48+
/**
49+
* <p>域名空间,即直播流地址的域名所属的域名空间。您可以调用 [ListDomainDetail](https://www.volcengine.com/docs/6469/1126815) 接口或在视频直播控制台的[域名管理](https://console.volcengine.com/live/main/domain/list)页面,查看需要录制的直播流使用的域名所属的域名空间。</p>
50+
*/
51+
@com.alibaba.fastjson.annotation.JSONField(name = "Vhost")
52+
private String vhost;
53+
54+
/**
55+
* <p>应用名称,取值与直播流地址的 `AppName` 字段取值相同,由 1 到 30 位数字(0 - 9)、大写小字母(A - Z、a - z)、下划线(\_)、短横线(-)和句点(.)组成,默认为空。</p>
56+
*
57+
* <p>:::tip</p>
58+
*
59+
* <p>- `App` 取值为空时,`Stream` 取值也需为空,表示录制配置为 Vhost 级别的全局配置。</p>
60+
*
61+
* <p>- `App` 取值不为空时,`Stream` 取值含义请参见 Stream 参数说明。</p>
62+
*
63+
* <p>:::</p>
64+
*/
65+
@com.alibaba.fastjson.annotation.JSONField(name = "App")
66+
private String app;
67+
68+
/**
69+
* <p>流名称,取值与直播流地址的 StreamName 字段取值相同,由 1 到 100 位数字(0 - 9)、大写小字母(A - Z、a - z)、下划线(\_)、短横线(-)和句点(.)组成。</p>
70+
*
71+
* <p>:::tip</p>
72+
*
73+
* <p>- `App` 取值不为空、`Stream` 取值为空时,表示录制配置为 Vhost + App 级别的配置。</p>
74+
*
75+
* <p>- `App` 取值不为空、`Stream` 取值不为空时,表示录制为 Vhost + App + Stream 的配置</p>
76+
*
77+
* <p>:::</p>
78+
*/
79+
@com.alibaba.fastjson.annotation.JSONField(name = "Stream")
80+
private String stream;
81+
82+
@Override
83+
public String toString() {
84+
return JSON.toJSONString(this);
85+
}
86+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.volcengine.model.live.v20230101;
2+
3+
4+
import com.alibaba.fastjson.JSON;
5+
import java.util.Map;
6+
7+
/**
8+
* CreateLivePadPresetRes
9+
*/
10+
@lombok.Data
11+
public final class CreateLivePadPresetRes {
12+
13+
/**
14+
* <p>TODO</p>
15+
*/
16+
@com.alibaba.fastjson.annotation.JSONField(name = "ResponseMetadata")
17+
private CreateLivePadPresetResResponseMetadata responseMetadata;
18+
19+
/**
20+
* <p>视请求的接口而定</p>
21+
*/
22+
@com.alibaba.fastjson.annotation.JSONField(name = "Result")
23+
private Map<String, Object> result;
24+
25+
@Override
26+
public String toString() {
27+
return JSON.toJSONString(this);
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package com.volcengine.model.live.v20230101;
2+
3+
4+
import com.alibaba.fastjson.JSON;
5+
6+
/**
7+
* CreateLivePadPresetResResponseMetadata
8+
*/
9+
@lombok.Data
10+
public final class CreateLivePadPresetResResponseMetadata {
11+
12+
/**
13+
* <p>RequestId为每次API请求的唯一标识。</p>
14+
*/
15+
@com.alibaba.fastjson.annotation.JSONField(name = "RequestId")
16+
private String requestId;
17+
18+
/**
19+
* <p>请求的接口名,属于请求的公共参数。</p>
20+
*/
21+
@com.alibaba.fastjson.annotation.JSONField(name = "Action")
22+
private String action;
23+
24+
/**
25+
* <p>请求的版本号,属于请求的公共参数。</p>
26+
*/
27+
@com.alibaba.fastjson.annotation.JSONField(name = "Version")
28+
private String version;
29+
30+
/**
31+
* <p>请求的服务,属于请求的公共参数。</p>
32+
*/
33+
@com.alibaba.fastjson.annotation.JSONField(name = "Service")
34+
private String service;
35+
36+
/**
37+
* <p>请求的Region,例如:cn-north-1</p>
38+
*/
39+
@com.alibaba.fastjson.annotation.JSONField(name = "Region")
40+
private String region;
41+
42+
@Override
43+
public String toString() {
44+
return JSON.toJSONString(this);
45+
}
46+
}

volc-sdk-java/src/main/java/com/volcengine/model/live/v20230101/CreateRecordPresetV2BodyRecordPresetConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public final class CreateRecordPresetV2BodyRecordPresetConfig {
5959
private Integer originRecord;
6060

6161
/**
62-
* <p>录制为 HLS 格式时,单个 TS 切片时长,单位为秒,默认值为 `10`,取值范围为 [5,30]。</p>
62+
* <p>录制为 HLS 格式时,单个 TS 切片时长,单位为秒,默认值为 `10`,取值范围为 [2,100]。</p>
6363
*/
6464
@com.alibaba.fastjson.annotation.JSONField(name = "SliceDuration")
6565
private Integer sliceDuration;

0 commit comments

Comments
 (0)