From 5bbc15d02332d657bb1c24ea3a99300721f6fd3d Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Fri, 18 Apr 2025 23:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=BD=95=E5=83=8F=E5=80=8D?= =?UTF-8?q?=E9=80=9F=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/gb28181/controller/PlaybackController.java | 6 +----- zlm.md | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/controller/PlaybackController.java b/src/main/java/com/genersoft/iot/vmp/gb28181/controller/PlaybackController.java index 11b221592..3b1fb108c 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/controller/PlaybackController.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/controller/PlaybackController.java @@ -215,7 +215,7 @@ public class PlaybackController { @Operation(summary = "回放倍速播放", security = @SecurityRequirement(name = JwtUtils.HEADER)) @Parameter(name = "streamId", description = "回放流ID", required = true) - @Parameter(name = "speed", description = "倍速0.25 0.5 1、2、4", required = true) + @Parameter(name = "speed", description = "倍速0.25 0.5 1、2、4、8", required = true) @GetMapping("/speed/{streamId}/{speed}") public void playSpeed(@PathVariable String streamId, @PathVariable Double speed) { log.info("playSpeed: "+streamId+", "+speed); @@ -225,10 +225,6 @@ public class PlaybackController { log.warn("streamId不存在!"); throw new ControllerException(ErrorCode.ERROR400.getCode(), "streamId不存在"); } - if(speed != 0.25 && speed != 0.5 && speed != 1 && speed != 2.0 && speed != 4.0) { - log.warn("不支持的speed: " + speed); - throw new ControllerException(ErrorCode.ERROR100.getCode(), "不支持的speed(0.25 0.5 1、2、4)"); - } Device device = deviceService.getDeviceByDeviceId(inviteInfo.getDeviceId()); DeviceChannel channel = channelService.getOneById(inviteInfo.getChannelId()); try { diff --git a/zlm.md b/zlm.md index f6fa4617a..bbaf32953 100644 --- a/zlm.md +++ b/zlm.md @@ -13,4 +13,3 @@ 3. loadMP4File扩展, 增加默认seek值和默认倍速,开始时直接从这个位置开始,并使用指定的倍速 4. 支持下载指定取件的mp4文件,这个区间可能包括多个文件和文件的一部分。 5. 希望seek接口和倍速接口可以去除schema的必选,作为可选项,不传则默认全部 -6. 可选: seek值如果可以换算为日期,会有更好的体验, 比如2025-4-15 12:32:11