Callback notification of basic functions of Tencent Cloud.
◆ 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) |
|
◆ onLicenceLoaded()
void onLicenceLoaded |
( |
final int |
result, |
|
|
final String |
reason |
|
) |
| |
|
inline |
Licence's load callback
- Parameters
-
result | 0 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:
- Inherit TXLiveBaseListener and override the onLog method, it is recommended to implement it in an earlier initialized class (such as Application).
- Set this callback during class initialization, eg:TXLiveBase.setListener(this).
- Parameters
-
level | log output level, see {@linkplain com.tencent.rtmp.TXLiveConstants::LOG_LEVEL_NULL log output level} |
module | log owning module, same as TAG |
log | log Content |
◆ onUpdateNetworkTime()
void onUpdateNetworkTime |
( |
final int |
errCode, |
|
|
final String |
errMsg |
|
) |
| |
|
inline |
NTP time synchronization, triggered after calling TXLiveBase#updateNetworkTime().
- Parameters
-
errCode | Error 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 |
errMsg | error information |