AliVCSDK 6.17.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
 
Loading...
Searching...
No Matches

Classes

class  com.alivc.live.pusher.AlivcLiveBase
 「Main API」AliLive Base Interface More...
 

Functions

static String com.alivc.live.pusher.AlivcLiveBase.getSDKVersion ()
 
static void com.alivc.live.pusher.AlivcLiveBase.setListener (AlivcLiveBaseListener listener)
 
static boolean com.alivc.live.pusher.AlivcLiveBase.registerSDK ()
 
static void com.alivc.live.pusher.AlivcLiveBase.setLogLevel (AlivcLivePushLogLevel level)
 
static void com.alivc.live.pusher.AlivcLiveBase.setConsoleEnabled (boolean enabled)
 
static void com.alivc.live.pusher.AlivcLiveBase.setLogDirPath (String logDirPath, int maxPartFileSizeInKB)
 
static boolean com.alivc.live.pusher.AlivcLiveBase.isSupportLiveMode (AlivcLiveMode liveMode)
 

Detailed Description

Function Documentation

◆ getSDKVersion()

static String com.alivc.live.pusher.AlivcLiveBase.getSDKVersion ( )
static

Get SDK version

Returns
SDK version

Definition at line 60 of file AlivcLiveBase.java.

◆ isSupportLiveMode()

static boolean com.alivc.live.pusher.AlivcLiveBase.isSupportLiveMode ( AlivcLiveMode  liveMode)
static

Is the live mode supported by SDK

Parameters
liveModelive mode
Returns
can be supported
Note
Basic: Only support AlivcLiveMode#AlivcLiveBasicMode
Interactive: Support AlivcLiveMode#AlivcLiveBasicMode and AlivcLiveMode#AlivcLiveInteractiveMode

Definition at line 129 of file AlivcLiveBase.java.

◆ registerSDK()

static boolean com.alivc.live.pusher.AlivcLiveBase.registerSDK ( )
static

Register SDK license

Note
This interface corresponds to the callback: AlivcLiveBaseListener#onLicenceCheck(AlivcLivePushConstants.AlivcLiveLicenseCheckResultCode, String)
You need call the method AlivcLiveBase#setListener(AlivcLiveBaseListener) first, in order to receive the async result
See also
Integrate a Push SDK license

Definition at line 82 of file AlivcLiveBase.java.

◆ setConsoleEnabled()

static void com.alivc.live.pusher.AlivcLiveBase.setConsoleEnabled ( boolean  enabled)
static

Turn on or off the console print log

Parameters
enabledturn on or off
Note
Default: false

Definition at line 104 of file AlivcLiveBase.java.

◆ setListener()

static void com.alivc.live.pusher.AlivcLiveBase.setListener ( AlivcLiveBaseListener  listener)
static

Set live push base listener

Parameters
listenerlive push base listener
Note
Receive callback for async license registration results
See also
com.alivc.live.pusher.AlivcLiveBaseListener

Definition at line 71 of file AlivcLiveBase.java.

◆ setLogDirPath()

static void com.alivc.live.pusher.AlivcLiveBase.setLogDirPath ( String  logDirPath,
int  maxPartFileSizeInKB 
)
static

Set log directory file path

Parameters
logDirPathlog directory file path
maxPartFileSizeInKBmax size of each partition, and the total volume of the final log is 5 times the maximum partition size
Note
Default path: /sdcard/Android/data/${app_package_name}/files/
The basic live streaming logs are stored in the Ali_RTS_Log directory, and the interactive live streaming logs are stored in the Ali_RTC_Log directory
Warning
Please store the files in an accessible SD card directory for the application, avoiding placing them directly in the root directory of the SD card. If the function fails, please check if the path exists and if the application has permission to read the SD card path.

Definition at line 117 of file AlivcLiveBase.java.

◆ setLogLevel()

static void com.alivc.live.pusher.AlivcLiveBase.setLogLevel ( AlivcLivePushLogLevel  level)
static

Set log level

Parameters
levellog level
Attention
If the log level is set to AlivcLivePushLogLevel#AlivcLivePushLogLevelAll, it will increase the performance consumption of the app!
Note
Default: AlivcLivePushLogLevel#AlivcLivePushLogLevelWarn

Definition at line 94 of file AlivcLiveBase.java.