级联点播 bye 向设备发送
This commit is contained in:
parent
5bbb8d2410
commit
98f1ffa838
@ -132,7 +132,7 @@ public class ByeRequestProcessor extends SIPRequestProcessorParent implements In
|
|||||||
int totalReaderCount = zlmServerFactory.totalReaderCount(mediaInfo, sendRtpItem.getApp(), streamId);
|
int totalReaderCount = zlmServerFactory.totalReaderCount(mediaInfo, sendRtpItem.getApp(), streamId);
|
||||||
if (totalReaderCount <= 0) {
|
if (totalReaderCount <= 0) {
|
||||||
logger.info("[收到bye] {} 无其它观看者,通知设备停止推流", streamId);
|
logger.info("[收到bye] {} 无其它观看者,通知设备停止推流", streamId);
|
||||||
if (sendRtpItem.getPlayType().equals(InviteStreamType.PLAY)) {
|
// if (sendRtpItem.getPlayType().equals(InviteStreamType.PLAY)) {
|
||||||
Device device = deviceService.getDevice(sendRtpItem.getDeviceId());
|
Device device = deviceService.getDevice(sendRtpItem.getDeviceId());
|
||||||
if (device == null) {
|
if (device == null) {
|
||||||
logger.info("[收到bye] {} 通知设备停止推流时未找到设备信息", streamId);
|
logger.info("[收到bye] {} 通知设备停止推流时未找到设备信息", streamId);
|
||||||
@ -144,7 +144,7 @@ public class ByeRequestProcessor extends SIPRequestProcessorParent implements In
|
|||||||
SsrcTransactionNotFoundException e) {
|
SsrcTransactionNotFoundException e) {
|
||||||
logger.error("[收到bye] {} 无其它观看者,通知设备停止推流, 发送BYE失败 {}",streamId, e.getMessage());
|
logger.error("[收到bye] {} 无其它观看者,通知设备停止推流, 发送BYE失败 {}",streamId, e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user