调整
This commit is contained in:
parent
091776c30e
commit
7ccb3db8bc
@ -531,7 +531,7 @@ public class Gb28181DownloadService {
|
|||||||
String toTag = item.getToTag();
|
String toTag = item.getToTag();
|
||||||
String key = GenericSubscribe.Helper.getKey(Request.BYE, callId);
|
String key = GenericSubscribe.Helper.getKey(Request.BYE, callId);
|
||||||
subscribe.getByeSubscribe().addPublisher(key);
|
subscribe.getByeSubscribe().addPublisher(key);
|
||||||
subscribe.getByeSubscribe().addSubscribe(key, byeSubscriber(key,cacheKey, streamId, time, unit));
|
subscribe.getByeSubscribe().addSubscribe(key, byeSubscriber(key, device, cacheKey, streamId, time, unit));
|
||||||
return SipRequestBuilder.createAckRequest(Response.OK, ip, port, docking, device.getGbDeviceChannelId(), fromTag, toTag, callId);
|
return SipRequestBuilder.createAckRequest(Response.OK, ip, port, docking, device.getGbDeviceChannelId(), fromTag, toTag, callId);
|
||||||
}));
|
}));
|
||||||
result.complete(new VideoInfo(streamId,videoUrl(streamId), callId, device));
|
result.complete(new VideoInfo(streamId,videoUrl(streamId), callId, device));
|
||||||
@ -564,7 +564,7 @@ public class Gb28181DownloadService {
|
|||||||
return subscriber;
|
return subscriber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Flow.Subscriber<SIPRequest> byeSubscriber(String key,String cacheKey,String streamId, long time, TimeUnit unit){
|
public Flow.Subscriber<SIPRequest> byeSubscriber(String key,WvpProxyDevice device, String cacheKey,String streamId, long time, TimeUnit unit){
|
||||||
ScheduledFuture<?>[] schedule = new ScheduledFuture<?>[1];
|
ScheduledFuture<?>[] schedule = new ScheduledFuture<?>[1];
|
||||||
Flow.Subscriber<SIPRequest> subscriber = new Flow.Subscriber<>() {
|
Flow.Subscriber<SIPRequest> subscriber = new Flow.Subscriber<>() {
|
||||||
@Override
|
@Override
|
||||||
@ -583,6 +583,7 @@ public class Gb28181DownloadService {
|
|||||||
String callId = request.getCallId().getCallId();
|
String callId = request.getCallId().getCallId();
|
||||||
String infoKey = CacheUtil.getKey(MediaSdpHelper.Action.PLAY.getAction(), callId);
|
String infoKey = CacheUtil.getKey(MediaSdpHelper.Action.PLAY.getAction(), callId);
|
||||||
RedisUtil.KeyOps.delete(infoKey);
|
RedisUtil.KeyOps.delete(infoKey);
|
||||||
|
realtimeManager.removePlaying(device.getDeviceCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
sender.getProvider(transport,ip)
|
sender.getProvider(transport,ip)
|
||||||
|
Loading…
Reference in New Issue
Block a user