Compare commits

...

3 Commits

3 changed files with 6 additions and 3 deletions

View File

@ -217,7 +217,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
if (sendRtpItem.isTcpActive()) { if (sendRtpItem.isTcpActive()) {
MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId()); MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId());
try { try {
mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5); mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5*1000);
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId()); DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId());
if (deviceChannel != null) { if (deviceChannel != null) {
redisCatchStorage.sendPlatformStartPlayMsg(sendRtpItem, deviceChannel, platform); redisCatchStorage.sendPlatformStartPlayMsg(sendRtpItem, deviceChannel, platform);

View File

@ -11,7 +11,7 @@ const actions = {
}) })
}) })
}, },
stop({ commit }, [deviceId, channelId]) { stop({ commit }, { deviceId, channelId }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
stop(deviceId, channelId).then(response => { stop(deviceId, channelId).then(response => {
const { data } = response const { data } = response

View File

@ -422,7 +422,10 @@ export default {
}) })
}, },
stopDevicePush: function(itemData) { stopDevicePush: function(itemData) {
this.$store.dispatch('play/stop', [this.deviceId, itemData.deviceId]).then(data => { this.$store.dispatch('play/stop', {
deviceId: this.deviceId,
channelId: itemData.deviceId
}).then(data => {
this.initData() this.initData()
}).catch((error) => { }).catch((error) => {
if (error.response.status === 402) { // if (error.response.status === 402) { //