|  |  |  | 
|---|
|  |  |  | logger.debug(String.format("设备回放 API调用,deviceId:%s ,channelId:%s", deviceId, channelId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | UUID uuid = UUID.randomUUID(); | 
|---|
|  |  |  | DeferredResult<ResponseEntity<String>> result = new DeferredResult<ResponseEntity<String>>(); | 
|---|
|  |  |  | DeferredResult<ResponseEntity<String>> result = new DeferredResult<ResponseEntity<String>>(30000L); | 
|---|
|  |  |  | // 超时处理 | 
|---|
|  |  |  | result.onTimeout(()->{ | 
|---|
|  |  |  | logger.warn(String.format("设备回放超时,deviceId:%s ,channelId:%s", deviceId, channelId)); | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiImplicitParams({ | 
|---|
|  |  |  | @ApiImplicitParam(name = "ssrc", value = "视频流标识", dataTypeClass = String.class), | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @RequestMapping("/stop/{ssrc}") | 
|---|
|  |  |  | @GetMapping("/stop/{ssrc}") | 
|---|
|  |  |  | public ResponseEntity<String> playStop(@PathVariable String ssrc) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | cmder.streamByeCmd(ssrc); | 
|---|