Skip to content

Commit db1688e

Browse files
committed
支持创建RTC WHIP推流地址
1 parent c99feb9 commit db1688e

File tree

6 files changed

+224
-1
lines changed

6 files changed

+224
-1
lines changed

aliyun-java-sdk-live/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-11 Version: 3.9.67
2+
支持创建RTC WHIP推流地址
3+
14
2025-05-12 Version: 3.9.66
25
- Generated 2016-11-01 for `live`.
36

aliyun-java-sdk-live/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-live</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.9.66</version>
7+
<version>3.9.67</version>
88
<name>aliyun-java-sdk-live</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.live.model.v20161101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.live.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateRTCWhipStreamAddressRequest extends RpcAcsRequest<CreateRTCWhipStreamAddressResponse> {
27+
28+
29+
private Integer expireTime;
30+
31+
private String clientToken;
32+
33+
private String userId;
34+
35+
private String appId;
36+
37+
private String displayName;
38+
39+
private String channelId;
40+
public CreateRTCWhipStreamAddressRequest() {
41+
super("live", "2016-11-01", "CreateRTCWhipStreamAddress", "live");
42+
setProtocol(ProtocolType.HTTPS);
43+
setMethod(MethodType.POST);
44+
try {
45+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
46+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
47+
} catch (Exception e) {}
48+
}
49+
50+
public Integer getExpireTime() {
51+
return this.expireTime;
52+
}
53+
54+
public void setExpireTime(Integer expireTime) {
55+
this.expireTime = expireTime;
56+
if(expireTime != null){
57+
putQueryParameter("ExpireTime", expireTime.toString());
58+
}
59+
}
60+
61+
public String getClientToken() {
62+
return this.clientToken;
63+
}
64+
65+
public void setClientToken(String clientToken) {
66+
this.clientToken = clientToken;
67+
if(clientToken != null){
68+
putQueryParameter("ClientToken", clientToken);
69+
}
70+
}
71+
72+
public String getUserId() {
73+
return this.userId;
74+
}
75+
76+
public void setUserId(String userId) {
77+
this.userId = userId;
78+
if(userId != null){
79+
putQueryParameter("UserId", userId);
80+
}
81+
}
82+
83+
public String getAppId() {
84+
return this.appId;
85+
}
86+
87+
public void setAppId(String appId) {
88+
this.appId = appId;
89+
if(appId != null){
90+
putQueryParameter("AppId", appId);
91+
}
92+
}
93+
94+
public String getDisplayName() {
95+
return this.displayName;
96+
}
97+
98+
public void setDisplayName(String displayName) {
99+
this.displayName = displayName;
100+
if(displayName != null){
101+
putQueryParameter("DisplayName", displayName);
102+
}
103+
}
104+
105+
public String getChannelId() {
106+
return this.channelId;
107+
}
108+
109+
public void setChannelId(String channelId) {
110+
this.channelId = channelId;
111+
if(channelId != null){
112+
putQueryParameter("ChannelId", channelId);
113+
}
114+
}
115+
116+
@Override
117+
public Class<CreateRTCWhipStreamAddressResponse> getResponseClass() {
118+
return CreateRTCWhipStreamAddressResponse.class;
119+
}
120+
121+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.live.model.v20161101;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.live.transform.v20161101.CreateRTCWhipStreamAddressResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateRTCWhipStreamAddressResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String whipAddress;
30+
31+
public String getRequestId() {
32+
return this.requestId;
33+
}
34+
35+
public void setRequestId(String requestId) {
36+
this.requestId = requestId;
37+
}
38+
39+
public String getWhipAddress() {
40+
return this.whipAddress;
41+
}
42+
43+
public void setWhipAddress(String whipAddress) {
44+
this.whipAddress = whipAddress;
45+
}
46+
47+
@Override
48+
public CreateRTCWhipStreamAddressResponse getInstance(UnmarshallerContext context) {
49+
return CreateRTCWhipStreamAddressResponseUnmarshaller.unmarshall(this, context);
50+
}
51+
52+
@Override
53+
public boolean checkShowJsonItemName() {
54+
return false;
55+
}
56+
}

aliyun-java-sdk-live/src/main/java/com/aliyuncs/live/model/v20161101/SetLiveStreamsNotifyUrlConfigRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class SetLiveStreamsNotifyUrlConfigRequest extends RpcAcsRequest<SetLiveS
3131

3232
private String notifyUrl;
3333

34+
private String switchNotifyUrl;
35+
3436
private String domainName;
3537

3638
private Long ownerId;
@@ -78,6 +80,17 @@ public void setNotifyUrl(String notifyUrl) {
7880
}
7981
}
8082

83+
public String getSwitchNotifyUrl() {
84+
return this.switchNotifyUrl;
85+
}
86+
87+
public void setSwitchNotifyUrl(String switchNotifyUrl) {
88+
this.switchNotifyUrl = switchNotifyUrl;
89+
if(switchNotifyUrl != null){
90+
putQueryParameter("SwitchNotifyUrl", switchNotifyUrl);
91+
}
92+
}
93+
8194
public String getDomainName() {
8295
return this.domainName;
8396
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.live.transform.v20161101;
16+
17+
import com.aliyuncs.live.model.v20161101.CreateRTCWhipStreamAddressResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class CreateRTCWhipStreamAddressResponseUnmarshaller {
22+
23+
public static CreateRTCWhipStreamAddressResponse unmarshall(CreateRTCWhipStreamAddressResponse createRTCWhipStreamAddressResponse, UnmarshallerContext _ctx) {
24+
25+
createRTCWhipStreamAddressResponse.setRequestId(_ctx.stringValue("CreateRTCWhipStreamAddressResponse.RequestId"));
26+
createRTCWhipStreamAddressResponse.setWhipAddress(_ctx.stringValue("CreateRTCWhipStreamAddressResponse.WhipAddress"));
27+
28+
return createRTCWhipStreamAddressResponse;
29+
}
30+
}

0 commit comments

Comments
 (0)