This commit is contained in:
zhongchao
2021-04-06 15:20:11 +08:00
parent 6ee6c99979
commit 72ac95b048
2 changed files with 17 additions and 9 deletions

View File

@@ -99,6 +99,14 @@ public class TrafficLiveCurrentManager
}
private void onVehicleLiveSuccess(String liveSn, SurfaceView surfaceView) {
if (TextUtils.isEmpty(liveSn)) {
if (TrafficLiveCurrentManager.this.trafficLiveCallBack != null) {
TrafficLiveCurrentManager.this.trafficLiveCallBack.onError("There are no live vehicles ahead !");
} else {
Logger.e(TAG, "onVehicleLiveSuccess , but result liveSn is null");
}
return;
}
String sn = MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn();
// 初始化配置文件
MoGoLivePushConfig mLivePushConfig = MoGoLivePushConfig.getInstance();