LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
V2TXLivePremier

Data Structures

class  V2TXLivePremier.V2TXLivePremierObserver
 
class  V2TXLivePremier
 

Detailed Description


Data Structure Documentation

◆ com::tencent::live2::V2TXLivePremier::V2TXLivePremierObserver

class com::tencent::live2::V2TXLivePremier::V2TXLivePremierObserver

Public Member Functions

void onLog (int level, String log)
 
void onLicenceLoaded (int result, String reason)
 

Member Function Documentation

◆ onLicenceLoaded()

void onLicenceLoaded ( int  result,
String  reason 
)
inline

setLicence result callback interface

Parameters
resultthe result of setLicence interface, 0 succeeds, negative number fails
reasonthe reason for failure

◆ onLog()

void onLog ( int  level,
String  log 
)
inline

Custom Log output callback interface

◆ com::tencent::live2::V2TXLivePremier

class com::tencent::live2::V2TXLivePremier

Static Public Member Functions

static String getSDKVersionStr ()
 
static void setObserver (V2TXLivePremierObserver observer)
 
static void setLogConfig (V2TXLiveDef.V2TXLiveLogConfig config)
 
static void setEnvironment (String env)
 
static void setLicence (Context context, String url, String key)
 
static void setSocks5Proxy (String host, int port, String username, String password)
 

Member Function Documentation

◆ getSDKVersionStr()

static String getSDKVersionStr ( )
inlinestatic

Get the SDK version number

◆ setEnvironment()

static void setEnvironment ( String  env)
inlinestatic

Set up SDK access environment

Attention
If your application has no special requirements, please do not call this interface for setting.
Parameters
envcurrently supports two parameters "default" and "GDPR"
  • default: In the default environment, the SDK will find the best access point in the world for access.
  • GDPR: All audio and video data and quality statistics will not pass through servers in mainland China.

◆ setLicence()

static void setLicence ( Context  context,
String  url,
String  key 
)
inlinestatic

Set SDK authorization license

Try and Purchase a License: https://intl.cloud.tencent.com/document/product/1071/38546

Parameters
context
urlthe url of licence
keythe key of licence

◆ setLogConfig()

static void setLogConfig ( V2TXLiveDef.V2TXLiveLogConfig  config)
inlinestatic

Set Log configuration information

◆ setObserver()

static void setObserver ( V2TXLivePremierObserver  observer)
inlinestatic

Set V2TXLivePremier callback interface

◆ setSocks5Proxy()

static void setSocks5Proxy ( String  host,
int  port,
String  username,
String  password 
)
inlinestatic

Set SDK sock5 proxy config

Parameters
hostsock5 sock5 proxy host
portsock5 sock5 proxy port
usernamesock5 sock5 proxy username
passwordsock5 sock5 proxy password