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