|  | @@ -12,7 +12,6 @@ import com.genersoft.iot.vmp.conf.exception.ServiceException;
 | 
	
		
			
				|  |  |  import com.genersoft.iot.vmp.conf.exception.SsrcTransactionNotFoundException;
 | 
	
		
			
				|  |  |  import com.genersoft.iot.vmp.gb28181.bean.*;
 | 
	
		
			
				|  |  |  import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
 | 
	
		
			
				|  |  | -import com.genersoft.iot.vmp.gb28181.session.SSRCFactory;
 | 
	
		
			
				|  |  |  import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager;
 | 
	
		
			
				|  |  |  import com.genersoft.iot.vmp.gb28181.transmit.callback.DeferredResultHolder;
 | 
	
		
			
				|  |  |  import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander;
 | 
	
	
		
			
				|  | @@ -39,7 +38,6 @@ import gov.nist.javax.sip.message.SIPResponse;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
		
			
				|  |  |  import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | -import org.springframework.data.redis.core.RedisTemplate;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.util.ObjectUtils;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -688,17 +686,8 @@ public class PlayServiceImpl implements IPlayService {
 | 
	
		
			
				|  |  |                      null);
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        String stream = null;
 | 
	
		
			
				|  |  | -        if (newMediaServerItem.isRtpEnable()) {
 | 
	
		
			
				|  |  | -            String startTimeStr = startTime.replace("-", "")
 | 
	
		
			
				|  |  | -                    .replace(":", "")
 | 
	
		
			
				|  |  | -                    .replace(" ", "");
 | 
	
		
			
				|  |  | -            String endTimeTimeStr = endTime.replace("-", "")
 | 
	
		
			
				|  |  | -                    .replace(":", "")
 | 
	
		
			
				|  |  | -                    .replace(" ", "");
 | 
	
		
			
				|  |  | -            stream = deviceId + "_" + channelId + "_" + startTimeStr + "_" + endTimeTimeStr;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        SSRCInfo ssrcInfo = mediaServerService.openRTPServer(newMediaServerItem, stream, null, device.isSsrcCheck(),  true, 0, false, device.getStreamModeForParam());
 | 
	
		
			
				|  |  | +        // 录像下载不使用固定流地址,固定流地址会导致如果开始时间与结束时间一致时文件错误的叠加在一起
 | 
	
		
			
				|  |  | +        SSRCInfo ssrcInfo = mediaServerService.openRTPServer(newMediaServerItem, null, null, device.isSsrcCheck(),  true, 0, false, device.getStreamModeForParam());
 | 
	
		
			
				|  |  |          download(newMediaServerItem, ssrcInfo, deviceId, channelId, startTime, endTime, downloadSpeed, callback);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |