Skip to content

Commit 06df769

Browse files
committed
RTC SDK Auto Released By shenshi,Version:1.0.2
发布日志: 1, Update Dependency
1 parent 1120996 commit 06df769

File tree

7 files changed

+170
-15
lines changed

7 files changed

+170
-15
lines changed

aliyun-python-sdk-rtc/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-03-15 Version: 1.0.2
2+
1, Update Dependency
3+
14
2018-11-08 Version: 1.0.1
25
1, Update Version.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"

aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/StopAppRequest.py renamed to aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/GetMPUTaskStatusRequest.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21-
class StopAppRequest(RpcRequest):
21+
class GetMPUTaskStatusRequest(RpcRequest):
2222

2323
def __init__(self):
24-
RpcRequest.__init__(self, 'rtc', '2018-01-11', 'StopApp','rtc')
24+
RpcRequest.__init__(self, 'rtc', '2018-01-11', 'GetMPUTaskStatus','rtc')
2525

2626
def get_OwnerId(self):
2727
return self.get_query_params().get('OwnerId')
@@ -33,4 +33,10 @@ def get_AppId(self):
3333
return self.get_query_params().get('AppId')
3434

3535
def set_AppId(self,AppId):
36-
self.add_query_param('AppId',AppId)
36+
self.add_query_param('AppId',AppId)
37+
38+
def get_TaskId(self):
39+
return self.get_query_params().get('TaskId')
40+
41+
def set_TaskId(self,TaskId):
42+
self.add_query_param('TaskId',TaskId)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class ReceiveNotifyRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'rtc', '2018-01-11', 'ReceiveNotify','rtc')
25+
26+
def get_TraceId(self):
27+
return self.get_query_params().get('TraceId')
28+
29+
def set_TraceId(self,TraceId):
30+
self.add_query_param('TraceId',TraceId)
31+
32+
def get_Content(self):
33+
return self.get_query_params().get('Content')
34+
35+
def set_Content(self,Content):
36+
self.add_query_param('Content',Content)
37+
38+
def get_Event(self):
39+
return self.get_query_params().get('Event')
40+
41+
def set_Event(self,Event):
42+
self.add_query_param('Event',Event)
43+
44+
def get_OwnerId(self):
45+
return self.get_query_params().get('OwnerId')
46+
47+
def set_OwnerId(self,OwnerId):
48+
self.add_query_param('OwnerId',OwnerId)
49+
50+
def get_ContentType(self):
51+
return self.get_query_params().get('ContentType')
52+
53+
def set_ContentType(self,ContentType):
54+
self.add_query_param('ContentType',ContentType)
55+
56+
def get_BizId(self):
57+
return self.get_query_params().get('BizId')
58+
59+
def set_BizId(self,BizId):
60+
self.add_query_param('BizId',BizId)
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class StartMPUTaskRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'rtc', '2018-01-11', 'StartMPUTask','rtc')
25+
26+
def get_UserPaness(self):
27+
return self.get_query_params().get('UserPaness')
28+
29+
def set_UserPaness(self,UserPaness):
30+
for i in range(len(UserPaness)):
31+
if UserPaness[i].get('PaneId') is not None:
32+
self.add_query_param('UserPanes.' + str(i + 1) + '.PaneId' , UserPaness[i].get('PaneId'))
33+
if UserPaness[i].get('UserId') is not None:
34+
self.add_query_param('UserPanes.' + str(i + 1) + '.UserId' , UserPaness[i].get('UserId'))
35+
if UserPaness[i].get('SourceType') is not None:
36+
self.add_query_param('UserPanes.' + str(i + 1) + '.SourceType' , UserPaness[i].get('SourceType'))
37+
38+
39+
def get_BackgroundColor(self):
40+
return self.get_query_params().get('BackgroundColor')
41+
42+
def set_BackgroundColor(self,BackgroundColor):
43+
self.add_query_param('BackgroundColor',BackgroundColor)
44+
45+
def get_LayoutIdss(self):
46+
return self.get_query_params().get('LayoutIdss')
47+
48+
def set_LayoutIdss(self,LayoutIdss):
49+
for i in range(len(LayoutIdss)):
50+
if LayoutIdss[i] is not None:
51+
self.add_query_param('LayoutIds.' + str(i + 1) , LayoutIdss[i]);
52+
53+
def get_TaskId(self):
54+
return self.get_query_params().get('TaskId')
55+
56+
def set_TaskId(self,TaskId):
57+
self.add_query_param('TaskId',TaskId)
58+
59+
def get_StreamURL(self):
60+
return self.get_query_params().get('StreamURL')
61+
62+
def set_StreamURL(self,StreamURL):
63+
self.add_query_param('StreamURL',StreamURL)
64+
65+
def get_OwnerId(self):
66+
return self.get_query_params().get('OwnerId')
67+
68+
def set_OwnerId(self,OwnerId):
69+
self.add_query_param('OwnerId',OwnerId)
70+
71+
def get_AppId(self):
72+
return self.get_query_params().get('AppId')
73+
74+
def set_AppId(self,AppId):
75+
self.add_query_param('AppId',AppId)
76+
77+
def get_MediaEncode(self):
78+
return self.get_query_params().get('MediaEncode')
79+
80+
def set_MediaEncode(self,MediaEncode):
81+
self.add_query_param('MediaEncode',MediaEncode)
82+
83+
def get_ChannelId(self):
84+
return self.get_query_params().get('ChannelId')
85+
86+
def set_ChannelId(self,ChannelId):
87+
self.add_query_param('ChannelId',ChannelId)

aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/StartAppRequest.py renamed to aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/StopMPUTaskRequest.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21-
class StartAppRequest(RpcRequest):
21+
class StopMPUTaskRequest(RpcRequest):
2222

2323
def __init__(self):
24-
RpcRequest.__init__(self, 'rtc', '2018-01-11', 'StartApp','rtc')
24+
RpcRequest.__init__(self, 'rtc', '2018-01-11', 'StopMPUTask','rtc')
2525

2626
def get_OwnerId(self):
2727
return self.get_query_params().get('OwnerId')
@@ -33,4 +33,10 @@ def get_AppId(self):
3333
return self.get_query_params().get('AppId')
3434

3535
def set_AppId(self,AppId):
36-
self.add_query_param('AppId',AppId)
36+
self.add_query_param('AppId',AppId)
37+
38+
def get_TaskId(self):
39+
return self.get_query_params().get('TaskId')
40+
41+
def set_TaskId(self,TaskId):
42+
self.add_query_param('TaskId',TaskId)

aliyun-python-sdk-rtc/setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@
4646
finally:
4747
desc_file.close()
4848

49-
requires = []
50-
51-
if sys.version_info < (3, 3):
52-
requires.append("aliyun-python-sdk-core>=2.0.2")
53-
else:
54-
requires.append("aliyun-python-sdk-core-v3>=2.3.5")
55-
5649
setup(
5750
name=NAME,
5851
version=VERSION,
@@ -66,7 +59,7 @@
6659
packages=find_packages(exclude=["tests*"]),
6760
include_package_data=True,
6861
platforms="any",
69-
install_requires=requires,
62+
install_requires=["aliyun-python-sdk-core>=2.11.5",],
7063
classifiers=(
7164
"Development Status :: 4 - Beta",
7265
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)