AliVCSDK  6.0.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
AlivcLiveBase.java
1 package com.alivc.live.pusher;
2 
4 import com.alivc.live.pusher.manager.AlivcLiveLicenseManager; // end of live
10  // end of live
17  // end of live
24  // end of live
31 
48 @CalledByNative
49 public class AlivcLiveBase {
50 
51  private AlivcLiveBase() {
52  }
53 
59  public static String getSDKVersion() {
60  return LivePusherJNI.getSdkVersion();
61  }
62 
70  public static void setListener(AlivcLiveBaseListener listener) {
71  AlivcLiveLicenseManager.setLicenseListener(listener);
72  }
73 
80  public static boolean registerSDK() {
81  AlivcLiveLicenseManager.registerLicense();
82  return true;
83  }
84 
93  public static void setLogLevel(AlivcLivePushLogLevel level) {
94  LivePusherJNI.setLogLevel(level.getLevel());
95  }
96 
103  public static void setConsoleEnabled(boolean enabled) {
104  LivePusherJNI.setConsoleEnabled(enabled);
105  }
106 
114  public static void setLogDirPath(String logDirPath, int maxPartFileSizeInKB) {
115  LivePusherJNI.setLogDirPath(logDirPath, maxPartFileSizeInKB);
116  }
117 
126  public static boolean isSupportLiveMode(AlivcLiveMode liveMode) {
127  if (liveMode == AlivcLiveMode.AlivcLiveBasicMode) {
128  return true;
129  } else if (liveMode == AlivcLiveMode.AlivcLiveInteractiveMode) {
130  return BuildConfig.BUILD_INTERACTIVE;
131  }
132  return false;
133  }
134 } // end of live_register
static void setConsoleEnabled(boolean enabled)
static void setLogDirPath(String logDirPath, int maxPartFileSizeInKB)
static void setLogLevel(AlivcLivePushLogLevel level)
static boolean isSupportLiveMode(AlivcLiveMode liveMode)
static void setListener(AlivcLiveBaseListener listener)