Package com.alivc.live.pusher
Class AlivcLiveBase
- java.lang.Object
-
- com.alivc.live.pusher.AlivcLiveBase
-
public class AlivcLiveBase extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AlivcLiveBase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getSDKVersion()
获取SDK版本号static boolean
registerSDK()
static void
setConsoleEnabled(boolean enabled)
启用或禁用控制台日志打印static void
setListener(AlivcLiveBaseListener listener)
设置 AlivcLiveBaseListener 回调接口static void
setLogDirPath(java.lang.String logDirPath, int maxPartFileSizeInKB)
设置日志路径及日志分片大小,确保路径存在,可写static void
setLogLevel(AlivcLivePushLogLevel level)
设置日志级别
-
-
-
Method Detail
-
getSDKVersion
public static java.lang.String getSDKVersion()
获取SDK版本号- Returns:
-
setListener
public static void setListener(AlivcLiveBaseListener listener)
设置 AlivcLiveBaseListener 回调接口
-
registerSDK
public static boolean registerSDK()
-
setLogLevel
public static void setLogLevel(AlivcLivePushLogLevel level)
设置日志级别- Parameters:
level
- 【默认】AlivcLivePushLogLevel.AlivcLivePushLogLevelWarn
-
setConsoleEnabled
public static void setConsoleEnabled(boolean enabled)
启用或禁用控制台日志打印- Parameters:
enabled
- 指定是否启用
-
setLogDirPath
public static void setLogDirPath(java.lang.String logDirPath, int maxPartFileSizeInKB)
设置日志路径及日志分片大小,确保路径存在,可写- Parameters:
logDirPath
-maxPartFileSizeInKB
- 每个分片最大大小。最终日志总体积是 5*最大分片大小
-
-