解决国标视频回放判断streamMode时空指针异常问题

pull/1533/head
wendy512 2024-07-18 13:40:47 +08:00
parent 9d37e96f06
commit 7732a1d180
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ public class PlayServiceImpl implements IPlayService {
}
MediaServer newMediaServerItem = getNewMediaServerItem(device);
if (device.getStreamMode().equalsIgnoreCase("TCP-ACTIVE") && ! newMediaServerItem.isRtpEnable()) {
if ("TCP-ACTIVE".equalsIgnoreCase(device.getStreamMode()) && ! newMediaServerItem.isRtpEnable()) {
logger.warn("[录像回放] 单端口收流时不支持TCP主动方式收流 deviceId: {},channelId:{}", deviceId, channelId);
throw new ControllerException(ErrorCode.ERROR100.getCode(), "单端口收流时不支持TCP主动方式收流");
}