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()) {
MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId());
try {
mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5);
mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5*1000);
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId());
if (deviceChannel != null) {
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) => {
stop(deviceId, channelId).then(response => {
const { data } = response

View File

@ -422,7 +422,10 @@ export default {
})
},
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()
}).catch((error) => {
if (error.response.status === 402) { //