Tencent Cloud Basic Function Class.
◆ com::tencent::rtmp::TXLiveBase
class com::tencent::rtmp::TXLiveBase |
◆ getInstance()
◆ getLicenceInfo()
String getLicenceInfo |
( |
Context |
context | ) |
|
|
inline |
get license information
- Parameters
-
- Returns
- license information
◆ getNetworkTimestamp()
static long getNetworkTimestamp |
( |
| ) |
|
|
inlinestatic |
Get NTP timestamp (milliseconds), please use after receiving onUpdateNetworkTime callback
- Returns
- NTP timestamp (milliseconds), if it returns 0: NTP time synchronization is not started or failed, please restart the time synchronization
◆ getPituSDKVersion()
static String getPituSDKVersion |
( |
| ) |
|
|
inlinestatic |
Get the enterprise version of the P-map SDK version, the non-enterprise version is empty String ""
◆ getSDKVersionStr()
static String getSDKVersionStr |
( |
| ) |
|
|
inlinestatic |
Get SDK version information.
- Returns
- SDK version information.
◆ isLibraryPathValid()
static boolean isLibraryPathValid |
( |
String |
path | ) |
|
|
inlinestatic |
Check the validity of LibraryPath.
- Parameters
-
path | The absolute path of the directory where the So file is located. |
- Returns
◆ onUpdateNetworkTime()
static void onUpdateNetworkTime |
( |
int |
errCode, |
|
|
String |
errMsg |
|
) |
| |
|
inlinestatic |
◆ setAppID()
static void setAppID |
( |
String |
appID | ) |
|
|
inlinestatic |
◆ setAppVersion()
static void setAppVersion |
( |
String |
verNum | ) |
|
|
inlinestatic |
◆ setConsoleEnabled()
static void setConsoleEnabled |
( |
boolean |
enabled | ) |
|
|
inlinestatic |
setConsoleEnabled Enable or disable console log printing
- Parameters
-
enabled | Specifies whether to enable |
◆ setExternalDecoderFactory()
static void setExternalDecoderFactory |
( |
TXLiteAVExternalDecoderFactoryInterface |
decoderFactory | ) |
|
|
inlinestatic |
Example of setting up an external H265 soft solver factory
◆ setExtID()
static boolean setExtID |
( |
String |
extKey, |
|
|
String |
extValue |
|
) |
| |
|
inlinestatic |
set extension fields
- Parameters
-
- Returns
- return false setting failed
◆ setGlobalEnv()
static int setGlobalEnv |
( |
String |
envConfig | ) |
|
|
inlinestatic |
Set the environment for liteav SDK to access. The deployment environment of Tencent Cloud in various regions of the world requires access to access points in different regions according to the requirements of policies and regulations in each region.
- Parameters
-
envConfig | The environment that needs to be connected, the default access environment of the SDK is: the default official environment. |
- Returns
- 0: success; other: error
- Attention
- Customers whose target market is mainland China, please do not call this interface. If the target market is overseas users, please contact us through technical support to understand the configuration method of env_config to ensure that the App complies with the GDPR standard.
◆ setLibraryPath()
static void setLibraryPath |
( |
String |
path | ) |
|
|
inlinestatic |
Set the library load path of the sdk.
- Parameters
-
path | The absolute path of the directory where so is located. |
◆ setLicence()
void setLicence |
( |
Context |
context, |
|
|
String |
url, |
|
|
String |
key |
|
) |
| |
|
inline |
set licence
- Parameters
-
context | |
url | url of licence |
key | licence key |
◆ setListener()
set listener, Can receive Log callback and Licence loading callback
- Parameters
-
◆ setLogLevel()
static void setLogLevel |
( |
int |
logLevel | ) |
|
|
inlinestatic |
Set the SDK to store logs within the logLevel level from {@linkplain com.tencent.rtmp.TXLiveConstants::LOG_LEVEL_NULL NULL level} to the file.
- Parameters
-
logLevel | The level limit of the log of the saved file. Value reference {@linkplain com.tencent.rtmp.TXLiveConstants::LOG_LEVEL_NULL log output level} |
◆ setPituLicencePath()
static void setPituLicencePath |
( |
String |
path | ) |
|
|
inlinestatic |
Set the file path of the Enterprise Edition Motion Effect Licence
- Parameters
-
path | Beginning with '/' indicates an absolute path, others indicate a relative path relative to the assets directory |
◆ setUserId()
static void setUserId |
( |
String |
userId | ) |
|
|
inlinestatic |
set userId
- Parameters
-
userId | The user or device id maintained by the service side itself, used to locate the relevant SDK usage data of the user or device in linkage with the SDK |
◆ updateNetworkTime()
static int updateNetworkTime |
( |
| ) |
|
|
inlinestatic |
Start NTP time service
- Returns
- 0: start successfully; < 0: start failed