解决多次初始化引擎
This commit is contained in:
@@ -42,7 +42,7 @@ public class MoGoApplication extends MultiDexApplication {
|
|||||||
// 设置是否是第三APP登录
|
// 设置是否是第三APP登录
|
||||||
clientConfig.setThirdLogin(true);
|
clientConfig.setThirdLogin(true);
|
||||||
// 设置是否输出日志
|
// 设置是否输出日志
|
||||||
clientConfig.setShowDebugLog(false);
|
clientConfig.setShowDebugLog(true);
|
||||||
// 设置从蘑菇AI开放平台获取的APPKey
|
// 设置从蘑菇AI开放平台获取的APPKey
|
||||||
clientConfig.setThirdPartyAppKey("wbvpzgar");
|
clientConfig.setThirdPartyAppKey("wbvpzgar");
|
||||||
// 设置AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
|
// 设置AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="请输入要查看的车机SN"
|
android:hint="请输入要查看的车机SN"
|
||||||
android:text="F803BB2037EZD00048"
|
android:text="F803EB2046PZD00149"
|
||||||
android:textColor="#FFFF"
|
android:textColor="#FFFF"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/liveToggleBtn"
|
app:layout_constraintBottom_toTopOf="@+id/liveToggleBtn"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public class TrafficLiveManager implements ILiveProgressListener {
|
|||||||
MoGoLivePushConfig mLivePushConfig = MoGoLivePushConfig.getInstance();
|
MoGoLivePushConfig mLivePushConfig = MoGoLivePushConfig.getInstance();
|
||||||
mLivePushConfig.setDevicesId(sn);
|
mLivePushConfig.setDevicesId(sn);
|
||||||
|
|
||||||
MoGoLiveManager.getInstance().init(application, mLivePushConfig);
|
// 登录要查看的SN房间
|
||||||
MoGoLiveManager.getInstance().loginMultiRoom(liveSn);
|
MoGoLiveManager.getInstance().loginMultiRoom(liveSn);
|
||||||
MoGoLiveManager.getInstance().setLiveProgressListener(TrafficLiveManager.this);
|
MoGoLiveManager.getInstance().setLiveProgressListener(TrafficLiveManager.this);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user