|
@@ -115,7 +115,8 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public void play(MediaServerItem mediaServerItem, String deviceId, String channelId,
|
|
|
+ public void play(MediaServerItem mediaServerItem, String deviceId,
|
|
|
+ String channelId,int isUsePs,
|
|
|
ZlmHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
|
|
|
Runnable timeoutCallback) {
|
|
|
if (mediaServerItem == null) {
|
|
@@ -200,7 +201,9 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
resultHolder.invokeAllResult(msg);
|
|
|
return;
|
|
|
}
|
|
|
- play(mediaServerItem, ssrcInfo, device, channelId, (mediaServerItemInUse, response) -> {
|
|
|
+ play(mediaServerItem, ssrcInfo, device, channelId,
|
|
|
+ isUsePs,
|
|
|
+ (mediaServerItemInUse, response) -> {
|
|
|
if (hookEvent != null) {
|
|
|
hookEvent.response(mediaServerItem, response);
|
|
|
}
|
|
@@ -232,7 +235,9 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
|
|
|
+ public void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,
|
|
|
+ Device device, String channelId,
|
|
|
+ int isUsePs,
|
|
|
ZlmHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
|
|
|
InviteTimeOutCallback timeoutCallback) {
|
|
|
|
|
@@ -275,7 +280,7 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
return;
|
|
|
}
|
|
|
try {
|
|
|
- cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId,1, (MediaServerItem mediaServerItemInuse, JSONObject response) -> {
|
|
|
+ cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId,isUsePs, (MediaServerItem mediaServerItemInuse, JSONObject response) -> {
|
|
|
logger.info("收到订阅消息: " + response.toJSONString());
|
|
|
logger.info("停止超时任务: " + timeOutTaskKey);
|
|
|
dynamicTask.stop(timeOutTaskKey);
|