Skip to content

Commit c749c69

Browse files
committed
支持创建RTC WHIP推流地址
1 parent 575f0b7 commit c749c69

File tree

4 files changed

+73
-1
lines changed

4 files changed

+73
-1
lines changed

aliyun-python-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.68
2+
支持创建RTC WHIP推流地址
3+
14
2025-05-12 Version: 3.9.67
25
- Generated 2016-11-01 for `live`.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.9.67'
1+
__version__ = '3.9.68'
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdklive.endpoint import endpoint_data
22+
23+
class CreateRTCWhipStreamAddressRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'live', '2016-11-01', 'CreateRTCWhipStreamAddress','live')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_ExpireTime(self): # Integer
36+
return self.get_query_params().get('ExpireTime')
37+
38+
def set_ExpireTime(self, ExpireTime): # Integer
39+
self.add_query_param('ExpireTime', ExpireTime)
40+
def get_ClientToken(self): # String
41+
return self.get_query_params().get('ClientToken')
42+
43+
def set_ClientToken(self, ClientToken): # String
44+
self.add_query_param('ClientToken', ClientToken)
45+
def get_UserId(self): # String
46+
return self.get_query_params().get('UserId')
47+
48+
def set_UserId(self, UserId): # String
49+
self.add_query_param('UserId', UserId)
50+
def get_AppId(self): # String
51+
return self.get_query_params().get('AppId')
52+
53+
def set_AppId(self, AppId): # String
54+
self.add_query_param('AppId', AppId)
55+
def get_DisplayName(self): # String
56+
return self.get_query_params().get('DisplayName')
57+
58+
def set_DisplayName(self, DisplayName): # String
59+
self.add_query_param('DisplayName', DisplayName)
60+
def get_ChannelId(self): # String
61+
return self.get_query_params().get('ChannelId')
62+
63+
def set_ChannelId(self, ChannelId): # String
64+
self.add_query_param('ChannelId', ChannelId)

aliyun-python-sdk-live/aliyunsdklive/request/v20161101/SetLiveStreamsNotifyUrlConfigRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def get_NotifyUrl(self): # String
4646

4747
def set_NotifyUrl(self, NotifyUrl): # String
4848
self.add_query_param('NotifyUrl', NotifyUrl)
49+
def get_SwitchNotifyUrl(self): # String
50+
return self.get_query_params().get('SwitchNotifyUrl')
51+
52+
def set_SwitchNotifyUrl(self, SwitchNotifyUrl): # String
53+
self.add_query_param('SwitchNotifyUrl', SwitchNotifyUrl)
4954
def get_DomainName(self): # String
5055
return self.get_query_params().get('DomainName')
5156

0 commit comments

Comments
 (0)