| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.concurrent.CountDownLatch; |
| | | |
| | | //诺瓦回调 |
| | | @RestController |
| | | @RequestMapping("/serv/vnnox") |
| | |
| | | @PostMapping("/screenshot") |
| | | public ResponseVO<Object> screenshot(@RequestBody VnnoxScreenShotParam vnnoxScreenShot) { |
| | | String url = vnnoxScreenShot.getScreenShotUrl().replace("&", "&"); |
| | | System.out.println(vnnoxScreenShot); |
| | | redisUtils.set(VnnoxConstant.REDIS_SCREEN_SHOT + vnnoxScreenShot.getPlayerId(), url); |
| | | return ResponseUtil.success("ok"); |
| | | } |
| | |
| | | System.out.println(asyncStatusParam.toString()); |
| | | if ("brightnessValue".equals(asyncStatusParam.getCommand())) { |
| | | //亮度 |
| | | redisUtils.set(VnnoxConstant.REDIS_BRIGHTNESS + asyncStatusParam.getPlayerId(), asyncStatusParam.getData().getRatio()); |
| | | redisUtils.set(VnnoxConstant.REDIS_BRIGHTNESS + asyncStatusParam.getPlayerId(), asyncStatusParam.getData().getRatio(), VnnoxConstant.STATUS_TIME); |
| | | } else if ("volumeValue".equals(asyncStatusParam.getCommand())) { |
| | | //音量 |
| | | redisUtils.set(VnnoxConstant.REDIS_VOL + asyncStatusParam.getPlayerId(), asyncStatusParam.getData().getRatio()); |
| | | redisUtils.set(VnnoxConstant.REDIS_VOL + asyncStatusParam.getPlayerId(), asyncStatusParam.getData().getRatio(), VnnoxConstant.STATUS_TIME); |
| | | } |
| | | countDownLatchUtil.countDown(asyncStatusParam.getLogid()); |
| | | return ResponseUtil.success("ok"); |