feat:声网RTC配置debug环境KEY
This commit is contained in:
@@ -72,6 +72,10 @@ public class XChatConstants {
|
||||
* 聲網 key
|
||||
*/
|
||||
public static final String AGORA_KEY = "f8713b6ec98c4c01adaf34cb4fa091b1"; //已更換
|
||||
/**
|
||||
* 聲網 key
|
||||
*/
|
||||
public static final String AGORA_KEY_DEBUG = "7ae1a8dabe7a44a9a67c829faa409e70";
|
||||
|
||||
/**
|
||||
* 阿裏雲日誌空間名字
|
||||
|
@@ -16,6 +16,7 @@ import com.yizhuan.xchat_android_constants.XChatConstants;
|
||||
import com.yizhuan.xchat_android_core.manager.BaseEngine;
|
||||
import com.yizhuan.xchat_android_core.music.db.bean.LocalMusicBean;
|
||||
import com.yizhuan.xchat_android_core.music.model.PlayerModel;
|
||||
import com.yizhuan.xchat_android_library.common.application.Env;
|
||||
import com.yizhuan.xchat_android_library.common.file.FileHelper;
|
||||
import com.yizhuan.xchat_android_library.utils.config.BasicConfig;
|
||||
|
||||
@@ -55,7 +56,7 @@ public class RtcEngineManager extends BaseEngine {
|
||||
Logger.t(TAG).d("enterChannel channelId:%d", channelId);
|
||||
if (mRtcEngine == null) {
|
||||
try {
|
||||
mRtcEngine = RtcEngine.create(BasicConfig.INSTANCE.getAppContext(), XChatConstants.AGORA_KEY, mEngineEventHandler);
|
||||
mRtcEngine = RtcEngine.create(BasicConfig.INSTANCE.getAppContext(), Env.isDebug() ? XChatConstants.AGORA_KEY_DEBUG : XChatConstants.AGORA_KEY, mEngineEventHandler);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(
|
||||
"NEED TO check rtc sdk init fatal error\n" + Log.getStackTraceString(e));
|
||||
|
Reference in New Issue
Block a user