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

protocol  <V2TXLivePremier>
 
protocol  <V2TXLivePremierObserver>
 
class  V2TXLivePremier
 

Detailed Description


Data Structure Documentation

◆ V2TXLivePremier-p

protocol V2TXLivePremier-p
+ Inheritance diagram for <V2TXLivePremier>:

Class Methods

(NSString *) + getSDKVersionStr
 
(void) + setObserver:
 
(V2TXLiveCode+ setLogConfig:
 
(V2TXLiveCode+ setEnvironment:
 
(void) + setLicence:key:
 
(V2TXLiveCode+ setSocks5Proxy:port:username:password:
 

Method Documentation

◆ getSDKVersionStr()

+ (NSString *) getSDKVersionStr

Get the SDK version number

◆ setEnvironment:()

+ (V2TXLiveCode) setEnvironment: (const char *)  env

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:key:()

+ (void) setLicence: (NSString *)  url
key: (NSString *)  key 

Set SDK authorization license

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

Parameters
urlthe url of licence
keythe key of licence

◆ setLogConfig:()

+ (V2TXLiveCode) setLogConfig: (V2TXLiveLogConfig *)  config

Set Log configuration information

◆ setObserver:()

+ (void) setObserver: (id< V2TXLivePremierObserver >)  observer

Set V2TXLivePremier callback interface

◆ setSocks5Proxy:port:username:password:()

+ (V2TXLiveCode) setSocks5Proxy: (NSString *)  host
port: (NSInteger)  port
username: (NSString *)  username
password: (NSString *)  password 

Set SDK sock5 proxy config

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

◆ V2TXLivePremierObserver-p

protocol V2TXLivePremierObserver-p
+ Inheritance diagram for <V2TXLivePremierObserver>:

Instance Methods

(void) - onLog:log:
 
(void) - onLicenceLoaded:Reason:
 

Method Documentation

◆ onLicenceLoaded:Reason:()

- (void) onLicenceLoaded: (int)  result
Reason: (NSString *)  reason 
optional

setLicence result callback interface

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

◆ onLog:log:()

- (void) onLog: (V2TXLiveLogLevel level
log: (NSString *)  log 
optional

Custom Log output callback interface

◆ V2TXLivePremier

class V2TXLivePremier
+ Inheritance diagram for V2TXLivePremier:

Class Methods

(NSString *) + getSDKVersionStr
 
(void) + setObserver:
 
(V2TXLiveCode+ setLogConfig:
 
(V2TXLiveCode+ setEnvironment:
 
(void) + setLicence:key:
 
(V2TXLiveCode+ setSocks5Proxy:port:username:password:
 

Method Documentation

◆ getSDKVersionStr()

+ (NSString *) getSDKVersionStr

Get the SDK version number

◆ setEnvironment:()

+ (V2TXLiveCode) setEnvironment: (const char *)  env

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:key:()

+ (void) setLicence: (NSString *)  url
key: (NSString *)  key 

Set SDK authorization license

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

Parameters
urlthe url of licence
keythe key of licence

◆ setLogConfig:()

+ (V2TXLiveCode) setLogConfig: (V2TXLiveLogConfig *)  config

Set Log configuration information

◆ setObserver:()

+ (void) setObserver: (id< V2TXLivePremierObserver >)  observer

Set V2TXLivePremier callback interface

◆ setSocks5Proxy:port:username:password:()

+ (V2TXLiveCode) setSocks5Proxy: (NSString *)  host
port: (NSInteger)  port
username: (NSString *)  username
password: (NSString *)  password 

Set SDK sock5 proxy config

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