|
|
|
|
@ -76,7 +76,7 @@ public class StationVideoTypeServiceImpl extends BaseServiceImpl<StationVideoTyp
|
|
|
|
|
stationVideoTypeEntity.setLiveSourceAddress(ArtemisPostUtils.getCameraPreviewURL(stationVideoTypeEntity.getVideoHost(), |
|
|
|
|
stationVideoTypeEntity.getAppKey(), stationVideoTypeEntity.getAppSecret() |
|
|
|
|
, stationVideoTypeEntity.getPointCode(), DictCache.getValue(StationConstants.STATION_VIDEO_TYPE_CODE, |
|
|
|
|
stationVideoTypeEntity.getType()), 0)); |
|
|
|
|
stationVideoTypeEntity.getType()), 0, null)); |
|
|
|
|
ids.add(stationVideoTypeEntity.getId()); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
stationVideoTypeEntity.setLiveSourceAddress(null); |
|
|
|
|
@ -158,7 +158,7 @@ public class StationVideoTypeServiceImpl extends BaseServiceImpl<StationVideoTyp
|
|
|
|
|
String address = null; |
|
|
|
|
try { |
|
|
|
|
address = ArtemisPostUtils.getCameraPreviewURL( |
|
|
|
|
entity.getVideoHost(), entity.getAppKey(), entity.getAppSecret(), entity.getPointCode(), type, 0 |
|
|
|
|
entity.getVideoHost(), entity.getAppKey(), entity.getAppSecret(), entity.getPointCode(), type, 0, null |
|
|
|
|
); |
|
|
|
|
entity.setLiveSourceAddress(address); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
@ -185,7 +185,7 @@ public class StationVideoTypeServiceImpl extends BaseServiceImpl<StationVideoTyp
|
|
|
|
|
entity.getAppKey(), |
|
|
|
|
entity.getAppSecret(), |
|
|
|
|
entity.getPointCode(), |
|
|
|
|
DictCache.getValue(StationConstants.STATION_VIDEO_TYPE_CODE, entity.getType()), 0 |
|
|
|
|
DictCache.getValue(StationConstants.STATION_VIDEO_TYPE_CODE, entity.getType()), 0, null |
|
|
|
|
); |
|
|
|
|
entity.setLiveSourceAddress(address); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
@ -275,7 +275,7 @@ public class StationVideoTypeServiceImpl extends BaseServiceImpl<StationVideoTyp
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public StationVideoTypeEntity getById(Long id, int streamType) { |
|
|
|
|
public StationVideoTypeEntity getById(Long id, int streamType, String expand) { |
|
|
|
|
StationVideoTypeEntity stationVideoTypeEntity = this.getById(id); |
|
|
|
|
if (ObjectUtil.isNotEmpty(stationVideoTypeEntity.getIsHikvideo()) && stationVideoTypeEntity.getIsHikvideo() == 1) { |
|
|
|
|
try { |
|
|
|
|
@ -287,6 +287,7 @@ public class StationVideoTypeServiceImpl extends BaseServiceImpl<StationVideoTyp
|
|
|
|
|
, stationVideoTypeEntity.getPointCode() |
|
|
|
|
, DictCache.getValue(StationConstants.STATION_VIDEO_TYPE_CODE, stationVideoTypeEntity.getType()) |
|
|
|
|
, streamType |
|
|
|
|
, expand |
|
|
|
|
)); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
stationVideoTypeEntity.setLiveSourceAddress(null); |
|
|
|
|
|