|
@@ -1,14 +1,12 @@
|
|
|
package com.genersoft.iot.vmp.service.impl;
|
|
package com.genersoft.iot.vmp.service.impl;
|
|
|
|
|
|
|
|
-import com.alibaba.fastjson2.JSONArray;
|
|
|
|
|
-import com.alibaba.fastjson2.JSONObject;
|
|
|
|
|
import com.genersoft.iot.vmp.common.StreamInfo;
|
|
import com.genersoft.iot.vmp.common.StreamInfo;
|
|
|
import com.genersoft.iot.vmp.conf.MediaConfig;
|
|
import com.genersoft.iot.vmp.conf.MediaConfig;
|
|
|
import com.genersoft.iot.vmp.media.bean.Track;
|
|
import com.genersoft.iot.vmp.media.bean.Track;
|
|
|
|
|
+import com.genersoft.iot.vmp.media.service.IMediaServerService;
|
|
|
import com.genersoft.iot.vmp.media.zlm.ZLMRESTfulUtils;
|
|
import com.genersoft.iot.vmp.media.zlm.ZLMRESTfulUtils;
|
|
|
import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
|
|
import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
|
|
|
import com.genersoft.iot.vmp.media.zlm.dto.StreamAuthorityInfo;
|
|
import com.genersoft.iot.vmp.media.zlm.dto.StreamAuthorityInfo;
|
|
|
-import com.genersoft.iot.vmp.media.service.IMediaServerService;
|
|
|
|
|
import com.genersoft.iot.vmp.service.IMediaService;
|
|
import com.genersoft.iot.vmp.service.IMediaService;
|
|
|
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
|
|
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -53,7 +51,7 @@ public class MediaServiceImpl implements IMediaService {
|
|
|
if (streamAuthorityInfo != null) {
|
|
if (streamAuthorityInfo != null) {
|
|
|
calld = streamAuthorityInfo.getCallId();
|
|
calld = streamAuthorityInfo.getCallId();
|
|
|
}
|
|
}
|
|
|
- List<StreamInfo> streamInfoList = mediaServerService.getMediaList(mediaInfo, app, stream);
|
|
|
|
|
|
|
+ List<StreamInfo> streamInfoList = mediaServerService.getMediaList(mediaInfo, app, stream, calld);
|
|
|
if (streamInfoList.isEmpty()) {
|
|
if (streamInfoList.isEmpty()) {
|
|
|
return null;
|
|
return null;
|
|
|
}else {
|
|
}else {
|