修复点播超时的事件设置
This commit is contained in:
parent
f725fac744
commit
7620fb951c
@ -235,7 +235,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
|||||||
String username = sdp.getOrigin().getUsername();
|
String username = sdp.getOrigin().getUsername();
|
||||||
String addressStr = sdp.getOrigin().getAddress();
|
String addressStr = sdp.getOrigin().getAddress();
|
||||||
|
|
||||||
logger.info("[上级点播]用户:{}, 地址:{}:{}, ssrc:{}", username, addressStr, port, ssrc);
|
logger.info("[上级点播]用户:{}, 通道:{}, 地址:{}:{}, ssrc:{}", username, channelId, addressStr, port, ssrc);
|
||||||
Device device = null;
|
Device device = null;
|
||||||
// 通过 channel 和 gbStream 是否为null 值判断来源是直播流合适国标
|
// 通过 channel 和 gbStream 是否为null 值判断来源是直播流合适国标
|
||||||
if (channel != null) {
|
if (channel != null) {
|
||||||
@ -377,6 +377,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
|||||||
// 写入redis, 超时时回复
|
// 写入redis, 超时时回复
|
||||||
redisCatchStorage.updateSendRTPSever(sendRtpItem);
|
redisCatchStorage.updateSendRTPSever(sendRtpItem);
|
||||||
playService.play(mediaServerItem, ssrcInfo, device, channelId, hookEvent, errorEvent, (code, msg)->{
|
playService.play(mediaServerItem, ssrcInfo, device, channelId, hookEvent, errorEvent, (code, msg)->{
|
||||||
|
logger.info("[上级点播]超时, 用户:{}, 通道:{}", username, channelId);
|
||||||
redisCatchStorage.deleteSendRTPServer(platform.getServerGBId(), channelId, callIdHeader.getCallId(), null);
|
redisCatchStorage.deleteSendRTPServer(platform.getServerGBId(), channelId, callIdHeader.getCallId(), null);
|
||||||
}, null);
|
}, null);
|
||||||
}else {
|
}else {
|
||||||
|
@ -257,7 +257,7 @@ public class PlayServiceImpl implements IPlayService {
|
|||||||
mediaServerService.closeRTPServer(device.getDeviceId(), channelId, finalSsrcInfo.getStream());
|
mediaServerService.closeRTPServer(device.getDeviceId(), channelId, finalSsrcInfo.getStream());
|
||||||
streamSession.remove(device.getDeviceId(), channelId, finalSsrcInfo.getStream());
|
streamSession.remove(device.getDeviceId(), channelId, finalSsrcInfo.getStream());
|
||||||
}
|
}
|
||||||
}, userSetting.getPlayTimeout()*1000);
|
}, userSetting.getPlayTimeout());
|
||||||
final String ssrc = ssrcInfo.getSsrc();
|
final String ssrc = ssrcInfo.getSsrc();
|
||||||
final String stream = ssrcInfo.getStream();
|
final String stream = ssrcInfo.getStream();
|
||||||
cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId, (MediaServerItem mediaServerItemInuse, JSONObject response) -> {
|
cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId, (MediaServerItem mediaServerItemInuse, JSONObject response) -> {
|
||||||
@ -433,7 +433,7 @@ public class PlayServiceImpl implements IPlayService {
|
|||||||
cmder.streamByeCmd(device.getDeviceId(), channelId, ssrcInfo.getStream(), null);
|
cmder.streamByeCmd(device.getDeviceId(), channelId, ssrcInfo.getStream(), null);
|
||||||
// 回复之前所有的点播请求
|
// 回复之前所有的点播请求
|
||||||
playBackCallback.call(playBackResult);
|
playBackCallback.call(playBackResult);
|
||||||
}, userSetting.getPlayTimeout()*1000);
|
}, userSetting.getPlayTimeout());
|
||||||
|
|
||||||
cmder.playbackStreamCmd(mediaServerItem, ssrcInfo, device, channelId, startTime, endTime, infoCallBack,
|
cmder.playbackStreamCmd(mediaServerItem, ssrcInfo, device, channelId, startTime, endTime, infoCallBack,
|
||||||
(InviteStreamInfo inviteStreamInfo) -> {
|
(InviteStreamInfo inviteStreamInfo) -> {
|
||||||
@ -522,7 +522,7 @@ public class PlayServiceImpl implements IPlayService {
|
|||||||
cmder.streamByeCmd(device.getDeviceId(), channelId, ssrcInfo.getStream(), null);
|
cmder.streamByeCmd(device.getDeviceId(), channelId, ssrcInfo.getStream(), null);
|
||||||
// 回复之前所有的点播请求
|
// 回复之前所有的点播请求
|
||||||
hookCallBack.call(downloadResult);
|
hookCallBack.call(downloadResult);
|
||||||
}, userSetting.getPlayTimeout()*1000);
|
}, userSetting.getPlayTimeout());
|
||||||
cmder.downloadStreamCmd(mediaServerItem, ssrcInfo, device, channelId, startTime, endTime, downloadSpeed, infoCallBack,
|
cmder.downloadStreamCmd(mediaServerItem, ssrcInfo, device, channelId, startTime, endTime, downloadSpeed, infoCallBack,
|
||||||
inviteStreamInfo -> {
|
inviteStreamInfo -> {
|
||||||
logger.info("收到订阅消息: " + inviteStreamInfo.getResponse().toJSONString());
|
logger.info("收到订阅消息: " + inviteStreamInfo.getResponse().toJSONString());
|
||||||
|
Loading…
Reference in New Issue
Block a user