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

@@ -30,20 +30,20 @@ PASSWORD=xintai2018
RELEASE=true
# AI CLOUD 云平台
# 工具类
MOGO_UTILS_VERSION=1.0.62
MOGO_UTILS_VERSION=1.0.63
# 网络请求
MOGO_NETWORK_VERSION=1.0.62
MOGO_NETWORK_VERSION=1.0.63
# 网络DNS
MOGO_HTTPDNS_VERSION=1.0.62
MOGO_HTTPDNS_VERSION=1.0.63
# 鉴权
MOGO_PASSPORT_VERSION=1.0.62
MOGO_PASSPORT_VERSION=1.0.63
# 常链接
MOGO_SOCKET_VERSION=1.0.62
MOGO_SOCKET_VERSION=1.0.63
# 数据采集
MOGO_REALTIME_VERSION=1.0.62
MOGO_REALTIME_VERSION=1.0.63
# 探路,道路事件发布,获取
MOGO_TANLU_VERSION=1.0.62
MOGO_TANLU_VERSION=1.0.63
# 直播推流
MOGO_LIVE_VERSION=1.0.62
MOGO_LIVE_VERSION=1.0.63
# 直播拉流
MOGO_TRAFFICLIVE_VERSION=1.0.62
MOGO_TRAFFICLIVE_VERSION=1.0.63

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();