Merge remote-tracking branch 'origin/hawkEye_live' into hawkEye_live

This commit is contained in:
董宏宇
2021-04-25 14:35:00 +08:00
4 changed files with 48 additions and 20 deletions

View File

@@ -119,13 +119,15 @@ public class RequestLiveManager {
@Override
public void onNext(@NonNull BaseData<LiveReceive> baseData) {
if (requestLiveListener != null && baseData.result != null) {
if (requestLiveListener != null && baseData != null) {
LiveReceive liveReceive = baseData.result;
if (liveReceive != null && liveReceive.getSn() != null) {
requestLiveListener.onSuccess(liveReceive.getSn(), liveReceive.getLat(), liveReceive.getLon());
} else {
requestLiveListener.onError(new Throwable("liveReceiver msg is wrong : " + liveReceive.toString()));
requestLiveListener.onError(new Throwable("前方暂无可直播车机"));
}
}else {
requestLiveListener.onError(new Throwable("前方暂无可直播车机"));
}
}
@@ -170,13 +172,15 @@ public class RequestLiveManager {
@Override
public void onNext(@NonNull BaseData<LiveReceive> baseData) {
if (requestLiveListener != null && baseData.result != null) {
if (requestLiveListener != null && baseData != null) {
LiveReceive liveReceive = baseData.result;
if (liveReceive != null && liveReceive.getLive() != null) {
requestLiveListener.onSuccess(liveReceive.getLive());
} else {
requestLiveListener.onError(new Throwable("request liveUrl is null,please connect tech"));
requestLiveListener.onError(new Throwable("前方路口暂无可直播设备"));
}
}else{
requestLiveListener.onError(new Throwable("前方路口暂无可直播设备"));
}
}
@@ -217,13 +221,15 @@ public class RequestLiveManager {
@Override
public void onNext(@NonNull BaseData<LiveReceive> baseData) {
if (requestLiveListener != null && baseData.result != null) {
if (requestLiveListener != null && baseData != null) {
LiveReceive liveReceive = baseData.result;
if (liveReceive != null && liveReceive.getLive() != null) {
requestLiveListener.onSuccess(liveReceive.getLive());
} else {
requestLiveListener.onError(new Throwable("request liveUrl is null,please connect tech"));
requestLiveListener.onError(new Throwable("此路口摄像头暂无直播流"));
}
}else{
requestLiveListener.onError(new Throwable("此路口摄像头暂无直播流"));
}
}

View File

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

View File

@@ -81,25 +81,30 @@ public class ADASRecognizedResult {
/**
* 道路ID
*/
private String roadId;
public String roadId;
/**
* 车道ID-2D路段
*/
private String laneId;
public String laneId;
/**
* 车道号中心线编号为0中心线右侧编号为负数3车道通行Road的车道编号0-1-2-3
*/
private int laneNum;
public int laneNum;
/**
* 限速
*/
private double rateLimiting;
public double rateLimiting;
/**
* 瓦片id
*/
public String tileId;
/**
* 车道宽度
*/
private double roadWidth;
public double roadWidth;
}

View File

@@ -73,6 +73,11 @@ public class CloudLocationInfo implements Parcelable {
*/
private double rateLimiting;
/**
* 瓦片id
*/
private String tileId;
/**
* 车道宽度
*/
@@ -94,6 +99,7 @@ public class CloudLocationInfo implements Parcelable {
this.laneId = info.laneId;
this.laneNum = info.laneNum;
this.rateLimiting = info.rateLimiting;
this.tileId = info.tileId;
this.roadWidth = info.roadWidth;
}
@@ -110,6 +116,7 @@ public class CloudLocationInfo implements Parcelable {
laneId = in.readString();
laneNum = in.readInt();
rateLimiting = in.readDouble();
tileId = in.readString();
roadWidth = in.readDouble();
}
@@ -127,6 +134,7 @@ public class CloudLocationInfo implements Parcelable {
dest.writeString(laneId);
dest.writeInt(laneNum);
dest.writeDouble(rateLimiting);
dest.writeString(tileId);
dest.writeDouble(roadWidth);
}
@@ -243,6 +251,14 @@ public class CloudLocationInfo implements Parcelable {
this.rateLimiting = rateLimiting;
}
public String getTileId() {
return tileId;
}
public void setTileId(String tileId) {
this.tileId = tileId;
}
public double getRoadWidth() {
return roadWidth;
}
@@ -266,6 +282,7 @@ public class CloudLocationInfo implements Parcelable {
", laneId='" + laneId + '\'' +
", laneNum=" + laneNum +
", rateLimiting=" + rateLimiting +
", tileId=" + tileId +
", roadWidth=" + roadWidth +
'}';
}