Merge pull request #1670 from QianNangong/fix_npe

修复开启 auto-apply-play 后通过视频播放地址点播报空指针的问题
pull/1675/head
648540858 2024-11-01 10:01:01 +08:00 committed by GitHub
commit 1635438445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ public class PlayServiceImpl implements IPlayService {
} }
if (s.length == 2) { if (s.length == 2) {
log.info("[ZLM HOOK] 预览流未找到, 发起自动点播:{}->{}->{}/{}", event.getMediaServer().getId(), event.getSchema(), event.getApp(), event.getStream()); log.info("[ZLM HOOK] 预览流未找到, 发起自动点播:{}->{}->{}/{}", event.getMediaServer().getId(), event.getSchema(), event.getApp(), event.getStream());
play(event.getMediaServer(), deviceId, channelId, null, null); play(event.getMediaServer(), deviceId, channelId, null, (code, msg, data) -> {});
} else if (s.length == 4) { } else if (s.length == 4) {
// 此时为录像回放, 录像回放格式为> 设备ID_通道ID_开始时间_结束时间 // 此时为录像回放, 录像回放格式为> 设备ID_通道ID_开始时间_结束时间
String startTimeStr = s[2]; String startTimeStr = s[2];
@ -283,7 +283,7 @@ public class PlayServiceImpl implements IPlayService {
startTime, endTime startTime, endTime
); );
playBack(event.getMediaServer(), device, deviceChannel, startTime, endTime, null); playBack(event.getMediaServer(), device, deviceChannel, startTime, endTime, (code, msg, data) -> {});
} }
} }