解决多次初始化引擎

This commit is contained in:
董宏宇
2021-03-02 19:27:58 +08:00
parent f938374b73
commit b8fd2ca532
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ public class MoGoApplication extends MultiDexApplication {
// 设置是否是第三APP登录
clientConfig.setThirdLogin(true);
// 设置是否输出日志
clientConfig.setShowDebugLog(false);
clientConfig.setShowDebugLog(true);
// 设置从蘑菇AI开放平台获取的APPKey
clientConfig.setThirdPartyAppKey("wbvpzgar");
// 设置AI云平台分配给三方应用的签名密钥需要从AI云平台申请

View File

@@ -78,7 +78,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="请输入要查看的车机SN"
android:text="F803BB2037EZD00048"
android:text="F803EB2046PZD00149"
android:textColor="#FFFF"
app:layout_constraintBottom_toTopOf="@+id/liveToggleBtn"
app:layout_constraintEnd_toEndOf="parent"

View File

@@ -71,7 +71,7 @@ public class TrafficLiveManager implements ILiveProgressListener {
MoGoLivePushConfig mLivePushConfig = MoGoLivePushConfig.getInstance();
mLivePushConfig.setDevicesId(sn);
MoGoLiveManager.getInstance().init(application, mLivePushConfig);
// 登录要查看的SN房间
MoGoLiveManager.getInstance().loginMultiRoom(liveSn);
MoGoLiveManager.getInstance().setLiveProgressListener(TrafficLiveManager.this);