lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.381 vs lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.382
- old
+ new
@@ -27,22 +27,22 @@
sdk_version = 'TRTC_' + File.read(File.expand_path('../VERSION', __dir__)).strip
super(credential, region, api_version, api_endpoint, sdk_version, profile)
end
- # ###接口说明:
+ # 接口说明:
# 启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制有或者多路视频画面混流一路。
- # ###您可以通过此接口实现如下目标:
+ # 您可以通过此接口实现如下目标:
# * 指定订阅流参数(RecordParams)来指定需要录制的主播的黑名单或者白名单。
# * 指定第三方存储的参数(StorageParams)来指定上传到您希望的云存储
# * 指定混流模式下的音视频转码详细参数(MixTranscodeParams),包括视频分辨率、视频码率、视频帧率、以及声音质量等
# * 指定混流模式各路画面的位置和布局或者也可以指定自动模板的方式来配置。
- # ###关键名词:
- # * 单流录制:分别录制房间的订阅UserId的音频和视频。录制服务会实时将录制文件(M3U8/TS)上传至云存储。
- # * 混流录制:将房间内订阅UserId的音视频混录成一个音视频文件,并将录制文件(M3U8/TS)上传至云存储。
+ # 关键名词:
+ # * 单流录制:分别录制房间的订阅UserId的音频和视频。录制服务会实时将录制文件上传至云点播存储。
+ # * 合流录制:将房间内订阅UserId的音视频混录成一个音视频文件,并将录制文件上传至云点播存储。
# @param request: Request instance for CreateCloudRecording.
# @type request: :class:`Tencentcloud::trtc::V20190722::CreateCloudRecordingRequest`
# @rtype: :class:`Tencentcloud::trtc::V20190722::CreateCloudRecordingResponse`
def CreateCloudRecording(request)
@@ -86,11 +86,11 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 成功开启录制后,可以使用此接口来停止录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
+ # 成功开启录制后,可以使用此接口来停止录制任务。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
# @param request: Request instance for DeleteCloudRecording.
# @type request: :class:`Tencentcloud::trtc::V20190722::DeleteCloudRecordingRequest`
# @rtype: :class:`Tencentcloud::trtc::V20190722::DeleteCloudRecordingResponse`
def DeleteCloudRecording(request)
@@ -134,60 +134,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 查询SdkAppId下任意20条异常体验事件,返回异常体验ID与可能产生异常体验的原因。可查询14天内数据,查询起止时间不超过1个小时。支持跨天查询。
- # 异常体验ID映射见:https://cloud.tencent.com/document/product/647/44916
-
- # @param request: Request instance for DescribeAbnormalEvent.
- # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeAbnormalEventRequest`
- # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeAbnormalEventResponse`
- def DescribeAbnormalEvent(request)
- body = send_request('DescribeAbnormalEvent', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeAbnormalEventResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
- # 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。
- # **注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
-
- # @param request: Request instance for DescribeCallDetail.
- # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeCallDetailRequest`
- # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeCallDetailResponse`
- def DescribeCallDetail(request)
- body = send_request('DescribeCallDetail', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeCallDetailResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
# **注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
# @param request: Request instance for DescribeCallDetailInfo.
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribeCallDetailInfoRequest`
@@ -210,10 +160,11 @@
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 成功开启录制后,可以使用此接口来查询录制状态。仅在录制任务进行时有效,录制退出后查询将会返回错误。
+ # 录制文件上传到云点播VOD时,StorageFileList中不会返回录制文件信息,请订阅相关录制文件回调事件,获取录制文件信息。
# @param request: Request instance for DescribeCloudRecording.
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribeCloudRecordingRequest`
# @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeCloudRecordingResponse`
def DescribeCloudRecording(request)
@@ -233,34 +184,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 查询用户某次通话内的进退房,视频开关等详细事件。可查询14天内数据。
-
- # @param request: Request instance for DescribeDetailEvent.
- # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeDetailEventRequest`
- # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeDetailEventResponse`
- def DescribeDetailEvent(request)
- body = send_request('DescribeDetailEvent', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeDetailEventResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 获取Trtc的用量统计数据。走计费渠道二期 只允许查两天的数据
# @param request: Request instance for DescribeExternalTrtcMeasure.
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribeExternalTrtcMeasureRequest`
# @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeExternalTrtcMeasureResponse`
@@ -281,34 +208,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 可查询SdkAppId每天的房间数和用户数,按天统计,可查询最近14天的数据。当天未结束,数据未统计完成,无法查到当天的房间数与用户数
-
- # @param request: Request instance for DescribeHistoryScale.
- # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeHistoryScaleRequest`
- # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeHistoryScaleResponse`
- def DescribeHistoryScale(request)
- body = send_request('DescribeHistoryScale', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeHistoryScaleResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁查找自定义背景图或水印信息,可通过此接口查找已上传的图片信息。无需频繁查找图片信息的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中查看。
# @param request: Request instance for DescribePicture.
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribePictureRequest`
# @rtype: :class:`Tencentcloud::trtc::V20190722::DescribePictureResponse`
@@ -383,35 +286,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100条通话。可查询14天内的数据。
- # **注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
-
- # @param request: Request instance for DescribeRoomInformation.
- # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeRoomInformationRequest`
- # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeRoomInformationResponse`
- def DescribeRoomInformation(request)
- body = send_request('DescribeRoomInformation', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeRoomInformationResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
# 可查询SdkAppId每天的房间数和用户数,按天统计,可查询最近14天的数据。当天未结束,数据未统计完成,无法查到当天的房间数与用户数。(同老接口DescribeHistoryScale)
# @param request: Request instance for DescribeScaleInfo.
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribeScaleInfoRequest`
# @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeScaleInfoResponse`
@@ -520,34 +398,9 @@
def DescribeUserInfo(request)
body = send_request('DescribeUserInfo', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeUserInfoResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
- # 查询指定时间内的用户列表,可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。
- # **注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
-
- # @param request: Request instance for DescribeUserInformation.
- # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeUserInformationRequest`
- # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeUserInformationResponse`
- def DescribeUserInformation(request)
- body = send_request('DescribeUserInformation', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeUserInformationResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
\ No newline at end of file