Search in sources :

Example 1 with LiveClient

use of com.tencentcloudapi.live.v20180801.LiveClient in project Ant-Live by PinTeh.

the class TencentConfig method getLiveClient.

@Bean
public LiveClient getLiveClient() {
    Credential cred = new Credential(iii, kkk);
    HttpProfile httpProfile = new HttpProfile();
    httpProfile.setEndpoint("live.tencentcloudapi.com");
    ClientProfile clientProfile = new ClientProfile();
    clientProfile.setHttpProfile(httpProfile);
    return new LiveClient(cred, "ap-chengdu", clientProfile);
}
Also used : LiveClient(com.tencentcloudapi.live.v20180801.LiveClient) Credential(com.tencentcloudapi.common.Credential) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) Bean(org.springframework.context.annotation.Bean)

Aggregations

Credential (com.tencentcloudapi.common.Credential)1 ClientProfile (com.tencentcloudapi.common.profile.ClientProfile)1 HttpProfile (com.tencentcloudapi.common.profile.HttpProfile)1 LiveClient (com.tencentcloudapi.live.v20180801.LiveClient)1 Bean (org.springframework.context.annotation.Bean)1