648540858
2020-10-14 b55374c75a17c87b9ccb8d5c12abe188875af256
src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java
@@ -7,6 +7,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
@@ -69,8 +70,8 @@
               return new ResponseEntity<String>("timeout",HttpStatus.OK);
            }else {
               JSONObject rtpInfo = zlmresTfulUtils.getRtpInfo(streamId);
               Boolean exist = rtpInfo.getBoolean("exist");
               if (rtpInfo == null || !rtpInfo.getBoolean("exist") || streamInfo.getFlv() != null){
               if (rtpInfo == null || !rtpInfo.getBoolean("exist") || storager.queryPlayByDevice(deviceId, channelId).getFlv() == null){
                  Thread.sleep(2000);
                  continue;
               }else {
                  lockFlag = false;
@@ -91,7 +92,6 @@
                  }
               };
            }
            Thread.sleep(200);
            streamInfo = storager.queryPlayByDevice(deviceId, channelId);
         } catch (InterruptedException e) {
            e.printStackTrace();