取消对实时点播(伪)的支持, 避免长时间占用编/解码资源
This commit is contained in:
parent
28d47f89b4
commit
69e9328392
@ -99,7 +99,9 @@ public class InviteRequestProcessor implements MessageProcessor {
|
||||
if (StringUtils.equalsAnyIgnoreCase(type, "Play", "PlayBack")) {
|
||||
log.info("点播/回放请求");
|
||||
if (StringUtils.equalsIgnoreCase(type, "Play")) {
|
||||
play(request, device, gb28181Description, (MediaDescription) item);
|
||||
// 暂不支持实时
|
||||
sender.sendResponse(senderIp, transport, unsupported(request));
|
||||
// play(request, device, gb28181Description, (MediaDescription) item);
|
||||
} else {
|
||||
playback(request, device, gb28181Description, (MediaDescription) item);
|
||||
}
|
||||
@ -138,7 +140,7 @@ public class InviteRequestProcessor implements MessageProcessor {
|
||||
@SneakyThrows
|
||||
private void play(SIPRequest request, MockingDevice device, GB28181Description gb28181Description, MediaDescription mediaDescription) {
|
||||
TimeField time = new TimeField();
|
||||
time.setStart(DateUtil.offsetMinute(DateUtil.date(), -15));
|
||||
time.setStart(DateUtil.offsetMinute(DateUtil.date(), -5));
|
||||
time.setStop(DateUtil.date());
|
||||
playback(request, device, gb28181Description, mediaDescription, time);
|
||||
}
|
||||
|
@ -79,7 +79,8 @@ public class DeviceProxyService {
|
||||
});
|
||||
Flow.Subscriber<SIPRequest> subscriber = byeSubscriber(key, device, callbackTask);
|
||||
subscribe.getByeSubscribe().addSubscribe(key, subscriber);
|
||||
taskNum.getAndIncrement();
|
||||
int num = taskNum.getAndIncrement();
|
||||
log.info("当前任务数 {}", num);
|
||||
zlmStreamChangeHookService.handlerMap.put(key,()->{
|
||||
StartSendRtp startSendRtp = new StartSendRtp();
|
||||
startSendRtp.setApp("rtp");
|
||||
@ -111,7 +112,8 @@ public class DeviceProxyService {
|
||||
});
|
||||
Flow.Subscriber<SIPRequest> subscriber = byeSubscriber(key, device, downloadTask);
|
||||
subscribe.getByeSubscribe().addSubscribe(key, subscriber);
|
||||
taskNum.getAndIncrement();
|
||||
int num = taskNum.getAndIncrement();
|
||||
log.info("当前任务数 {}", num);
|
||||
zlmStreamChangeHookService.handlerMap.put(key,()->{
|
||||
StartSendRtp startSendRtp = new StartSendRtp();
|
||||
startSendRtp.setApp("rtp");
|
||||
|
Loading…
Reference in New Issue
Block a user