tencentcloud-sdk-car 3.0.663 → 3.0.665
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220110/client.rb +24 -0
- data/lib/v20220110/models.rb +36 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d60abe7c24a29adf2a9099471c9a9ab3c78a82a8
|
4
|
+
data.tar.gz: 30c717a5324cba27692a78f8f64ac03ef6f30cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a90369c3df2fc043b4f9b2073dc6dad1dd8d8eaba85ff04626a506d09e7c6b958f79b1eee546164329a18a57c5c0fcb498ba426f71c3a47d02dafb5406691b79
|
7
|
+
data.tar.gz: d23b6c9c3e82476dd7afb37bbb2700da2ae04321ac198f5908a081250f099a5e7cfb8c367c6d5fdf2a0a2966f40a73589192aec0a35445dd87d81d50352f5fb1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.665
|
data/lib/v20220110/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 开始云端推流到指定URL
|
129
|
+
|
130
|
+
# @param request: Request instance for StartPublishStreamWithURL.
|
131
|
+
# @type request: :class:`Tencentcloud::car::V20220110::StartPublishStreamWithURLRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::car::V20220110::StartPublishStreamWithURLResponse`
|
133
|
+
def StartPublishStreamWithURL(request)
|
134
|
+
body = send_request('StartPublishStreamWithURL', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = StartPublishStreamWithURLResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 停止云端推流
|
129
153
|
|
130
154
|
# @param request: Request instance for StopPublishStream.
|
data/lib/v20220110/models.rb
CHANGED
@@ -205,6 +205,42 @@ module TencentCloud
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
+
# StartPublishStreamWithURL请求参数结构体
|
209
|
+
class StartPublishStreamWithURLRequest < TencentCloud::Common::AbstractModel
|
210
|
+
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。
|
211
|
+
# @type UserId: String
|
212
|
+
# @param PublishStreamURL: 推流地址,仅支持rtmp协议。
|
213
|
+
# @type PublishStreamURL: String
|
214
|
+
|
215
|
+
attr_accessor :UserId, :PublishStreamURL
|
216
|
+
|
217
|
+
def initialize(userid=nil, publishstreamurl=nil)
|
218
|
+
@UserId = userid
|
219
|
+
@PublishStreamURL = publishstreamurl
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@UserId = params['UserId']
|
224
|
+
@PublishStreamURL = params['PublishStreamURL']
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# StartPublishStreamWithURL返回参数结构体
|
229
|
+
class StartPublishStreamWithURLResponse < TencentCloud::Common::AbstractModel
|
230
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
231
|
+
# @type RequestId: String
|
232
|
+
|
233
|
+
attr_accessor :RequestId
|
234
|
+
|
235
|
+
def initialize(requestid=nil)
|
236
|
+
@RequestId = requestid
|
237
|
+
end
|
238
|
+
|
239
|
+
def deserialize(params)
|
240
|
+
@RequestId = params['RequestId']
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
208
244
|
# StopPublishStream请求参数结构体
|
209
245
|
class StopPublishStreamRequest < TencentCloud::Common::AbstractModel
|
210
246
|
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-car
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.665
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|