Skip to content

Commit 6463679

Browse files
Merge pull request #162 from jdcloud-apigateway/master
openjrtc 1.1.6
2 parents 0361a0e + e6d2935 commit 6463679

12 files changed

Lines changed: 491 additions & 3 deletions

jdcloud_sdk/services/openjrtc/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 更新历史 #
2-
API版本:1.1.5
2+
API版本:1.1.6
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
@@ -10,3 +10,4 @@ API版本:1.1.5
1010
|2021-08-26 |1.1.3 |更新接口 |* 注册用户;<br>* 查询注册用户;<br>* 查询注册用户列表;<br>* 注册用户房间号;<br>* 查询注册房间号;<br>* 查询注册房间号列表;<br>* 修改房间;<br>* 查询房间内人员列表;<br>* 统计房间内人数;<br>* 移除房间内所有人员;<br>* 移除房间内指定人员;<br>* 发送自定义信令给房间内的人员;<br>* 发送自定义信令给房间;<br>* 生成token;<br> |
1111
|2021-02-16 |1.1.4 |新增接口 |* 下发混流任务;<br>* 中止混流任务;<br>* 关闭房间内的指定流;|
1212
|2021-03-09 |1.1.5 |新增接口 |* 获取近7天通讯时长;<br>* 获取历史音频、视频区分码率通讯时长;<br>* 查询房间人数、通讯时长;<br>* 查询房间用户记录;<br>* 查询用户端到端推流码率|
13+
|2021-03-24 |1.1.6 |新增接口 |* 开启语音识别功能;<br>* 关闭语音识别功能;|
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeCallDurationByCodeRateRequest(JDCloudRequest):
23+
"""
24+
获取历史音频、区分视频码率通讯时长
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeCallDurationByCodeRateRequest, self).__init__(
30+
'/describeCallDurationByCodeRate', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeCallDurationByCodeRateParameters(object):
35+
36+
def __init__(self, startTime, ):
37+
"""
38+
:param startTime: 开始时间 UTC格式
39+
"""
40+
41+
self.appId = None
42+
self.startTime = startTime
43+
self.endTime = None
44+
45+
def setAppId(self, appId):
46+
"""
47+
:param appId: (Optional) 应用ID
48+
"""
49+
self.appId = appId
50+
51+
def setEndTime(self, endTime):
52+
"""
53+
:param endTime: (Optional) 结束时间 UTC格式
54+
"""
55+
self.endTime = endTime
56+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeDailyCallDurationRequest(JDCloudRequest):
23+
"""
24+
获取近7天通讯时长
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeDailyCallDurationRequest, self).__init__(
30+
'/describeDailyCallDuration', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeDailyCallDurationParameters(object):
35+
36+
def __init__(self, ):
37+
"""
38+
"""
39+
40+
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeOnlineUserNumRequest(JDCloudRequest):
23+
"""
24+
查询房间人数,通讯时长,最大支持查询7天的数据
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- appId[eq] 按应用ID精确查询(必填)
27+
- userRoomId[eq] 按房间ID精确查询(必填)
28+
- startTime[eq] 开始时间 UTC格式(必填)
29+
- endTime[eq] 截止时间 UTC格式 (必填)
30+
31+
"""
32+
33+
def __init__(self, parameters, header=None, version="v1"):
34+
super(DescribeOnlineUserNumRequest, self).__init__(
35+
'/describeOnlineUserNum', 'GET', header, version)
36+
self.parameters = parameters
37+
38+
39+
class DescribeOnlineUserNumParameters(object):
40+
41+
def __init__(self, filters):
42+
"""
43+
:param filters: 传参字段描述:
44+
appId: 应用ID (必填)
45+
userRoomId:业务接入方定义的且在JRTC系统内注册过的房间号(必填)
46+
startTime: 房间使用起始时间 UTC (必填)
47+
endTime:房间使用截止时间 UTC (必填)
48+
49+
"""
50+
51+
self.pageNumber = None
52+
self.pageSize = None
53+
self.filters = filters
54+
55+
def setPageNumber(self, pageNumber):
56+
"""
57+
:param pageNumber: (Optional) 页码;默认值为 1
58+
"""
59+
self.pageNumber = pageNumber
60+
61+
def setPageSize(self, pageSize):
62+
"""
63+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
64+
"""
65+
self.pageSize = pageSize
66+
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeP2pStreamBitRateRequest(JDCloudRequest):
23+
"""
24+
查询用户端到端推流码率
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeP2pStreamBitRateRequest, self).__init__(
30+
'/describeP2pStreamBitRate', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeP2pStreamBitRateParameters(object):
35+
36+
def __init__(self, appId, userRoomId, userId, kind, type, joinTime, ):
37+
"""
38+
:param appId: 应用ID
39+
:param userRoomId: 业务接入方定义的且在JRTC系统内注册过的用户房间号
40+
:param userId: 业务接入方定义的且在JRTC系统内注册过的用户id
41+
:param kind: audio/video
42+
:param type: producer 发布流 consumer 订阅流
43+
:param joinTime: 加入时间 UTC格式
44+
"""
45+
46+
self.appId = appId
47+
self.userRoomId = userRoomId
48+
self.userId = userId
49+
self.kind = kind
50+
self.type = type
51+
self.joinTime = joinTime
52+
self.leaveTime = None
53+
self.fromUserId = None
54+
self.period = None
55+
56+
def setLeaveTime(self, leaveTime):
57+
"""
58+
:param leaveTime: (Optional) 离开时间 UTC格式
59+
"""
60+
self.leaveTime = leaveTime
61+
62+
def setFromUserId(self, fromUserId):
63+
"""
64+
:param fromUserId: (Optional) 业务接入方定义的且在JRTC系统内注册过的用户id type=consumer时选择发送端用户id切换码率
65+
"""
66+
self.fromUserId = fromUserId
67+
68+
def setPeriod(self, period):
69+
"""
70+
:param period: (Optional) 粒度 支持 1m 1h 1d
71+
"""
72+
self.period = period
73+
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeUserRecordByRoomRequest(JDCloudRequest):
23+
"""
24+
查询房间用户记录,最大支持查询7天的数据
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- appId[eq] 按应用ID精确查询 (必填)
27+
- startTime[eq] 开始时间 UTC格式 (必填)
28+
- endTime[eq] 截止时间 UTC格式 (必填)
29+
- userRoomId[eq] 按房间ID精确查询(必填)
30+
- userId[eq] 按用户ID精确查询
31+
32+
"""
33+
34+
def __init__(self, parameters, header=None, version="v1"):
35+
super(DescribeUserRecordByRoomRequest, self).__init__(
36+
'/describeUserRecordByRoom', 'GET', header, version)
37+
self.parameters = parameters
38+
39+
40+
class DescribeUserRecordByRoomParameters(object):
41+
42+
def __init__(self, filters):
43+
"""
44+
:param filters: 传参字段描述:
45+
appId: 应用ID (必填)
46+
startTime: 房间使用起始时间 UTC格式 (必填)
47+
endTime:房间使用截止时间 UTC格式 (必填)
48+
userRoomId:业务接入方定义的且在JRTC系统内注册过的房间号(必填)
49+
userId:业务接入方定义的且在JRTC系统内注册过的用户id
50+
51+
"""
52+
53+
self.pageNumber = None
54+
self.pageSize = None
55+
self.filters = filters
56+
57+
def setPageNumber(self, pageNumber):
58+
"""
59+
:param pageNumber: (Optional) 页码;默认值为 1
60+
"""
61+
self.pageNumber = pageNumber
62+
63+
def setPageSize(self, pageSize):
64+
"""
65+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
66+
"""
67+
self.pageSize = pageSize
68+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class StartAsrTaskRequest(JDCloudRequest):
23+
"""
24+
开启语音识别功能
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(StartAsrTaskRequest, self).__init__(
30+
'/startAsrTask', 'POST', header, version)
31+
self.parameters = parameters
32+
33+
34+
class StartAsrTaskParameters(object):
35+
36+
def __init__(self, ):
37+
"""
38+
"""
39+
40+
self.appId = None
41+
self.userRoomId = None
42+
self.asrTaskType = None
43+
44+
def setAppId(self, appId):
45+
"""
46+
:param appId: (Optional) 应用ID
47+
"""
48+
self.appId = appId
49+
50+
def setUserRoomId(self, userRoomId):
51+
"""
52+
:param userRoomId: (Optional) 业务接入方定义的且在JRTC系统内注册过的房间号
53+
"""
54+
self.userRoomId = userRoomId
55+
56+
def setAsrTaskType(self, asrTaskType):
57+
"""
58+
:param asrTaskType: (Optional) 语音识别场景 0-全部识别转文字
59+
"""
60+
self.asrTaskType = asrTaskType
61+

0 commit comments

Comments
 (0)