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.
TXLiveBaseListener_android

Data Structures

class  TXLiveBaseListener
 

Detailed Description

Callback notification of basic functions of Tencent Cloud.


Data Structure Documentation

◆ com::tencent::rtmp::TXLiveBaseListener

class com::tencent::rtmp::TXLiveBaseListener

Public Member Functions

void onLog (final int level, final String module, final String log)
 
void onUpdateNetworkTime (final int errCode, final String errMsg)
 
void onLicenceLoaded (final int result, final String reason)
 

Member Function Documentation

◆ onLicenceLoaded()

void onLicenceLoaded ( final int  result,
final String  reason 
)
inline

Licence's load callback

Parameters
result0 means the loading is successful, other values can refer to the error definition reason in LicenceCheck.

◆ onLog()

void onLog ( final int  level,
final String  module,
final String  log 
)
inline

SDK internal logs callback

In order to facilitate the management of logs by the SDK users, the SDK is no longer responsible for the logs output, but callback all the logs to the SDK users through this function, and the SDK users decide how to handle the logs.

Please refer to the implementation in Demo to know how to use:

  1. Inherit TXLiveBaseListener and override the onLog method, it is recommended to implement it in an earlier initialized class (such as Application).
  2. Set this callback during class initialization, eg:TXLiveBase.setListener(this).
Parameters
levellog output level, see {@linkplain com.tencent.rtmp.TXLiveConstants::LOG_LEVEL_NULL log output level}
modulelog owning module, same as TAG
loglog Content

◆ onUpdateNetworkTime()

void onUpdateNetworkTime ( final int  errCode,
final String  errMsg 
)
inline

NTP time synchronization, triggered after calling TXLiveBase#updateNetworkTime().

Parameters
errCodeError code, 0: indicates that the time adjustment is successful and the deviation is within 30ms; 1: indicates that the time adjustment is successful but the deviation may be more than 30ms; -1: indicates that the time adjustment fails
errMsgerror information