public class CarClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
CarClient(Credential credential,
String region) |
CarClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
ApplyConcurrentResponse |
ApplyConcurrent(ApplyConcurrentRequest req)
本接口用于申请并发。接口超时时间:20秒。
|
CreateSessionResponse |
CreateSession(CreateSessionRequest req)
本接口用于创建会话。接口超时时间:5秒。
|
DestroySessionResponse |
DestroySession(DestroySessionRequest req)
销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
|
StartPublishStreamResponse |
StartPublishStream(StartPublishStreamRequest req)
开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。
|
StartPublishStreamWithURLResponse |
StartPublishStreamWithURL(StartPublishStreamWithURLRequest req)
开始云端推流到指定URL。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)
|
StopPublishStreamResponse |
StopPublishStream(StopPublishStreamRequest req)
停止云端推流
|
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
public CarClient(Credential credential, String region)
public CarClient(Credential credential, String region, ClientProfile profile)
public ApplyConcurrentResponse ApplyConcurrent(ApplyConcurrentRequest req) throws TencentCloudSDKException
req
- ApplyConcurrentRequestTencentCloudSDKException
public CreateSessionResponse CreateSession(CreateSessionRequest req) throws TencentCloudSDKException
req
- CreateSessionRequestTencentCloudSDKException
public DestroySessionResponse DestroySession(DestroySessionRequest req) throws TencentCloudSDKException
req
- DestroySessionRequestTencentCloudSDKException
public StartPublishStreamResponse StartPublishStream(StartPublishStreamRequest req) throws TencentCloudSDKException
req
- StartPublishStreamRequestTencentCloudSDKException
public StartPublishStreamWithURLResponse StartPublishStreamWithURL(StartPublishStreamWithURLRequest req) throws TencentCloudSDKException
req
- StartPublishStreamWithURLRequestTencentCloudSDKException
public StopPublishStreamResponse StopPublishStream(StopPublishStreamRequest req) throws TencentCloudSDKException
req
- StopPublishStreamRequestTencentCloudSDKException
Copyright © 2024. All rights reserved.