去除录像倍速限制

This commit is contained in:
lin
2025-04-18 23:14:57 +08:00
parent 3b4a6018cb
commit 5bbc15d023
2 changed files with 1 additions and 6 deletions

View File

@@ -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(), "不支持的speed0.25 0.5 1、2、4");
}
Device device = deviceService.getDeviceByDeviceId(inviteInfo.getDeviceId());
DeviceChannel channel = channelService.getOneById(inviteInfo.getChannelId());
try {

1
zlm.md
View File

@@ -13,4 +13,3 @@
3. loadMP4File扩展 增加默认seek值和默认倍速开始时直接从这个位置开始并使用指定的倍速
4. 支持下载指定取件的mp4文件这个区间可能包括多个文件和文件的一部分。
5. 希望seek接口和倍速接口可以去除schema的必选作为可选项不传则默认全部
6. 可选: seek值如果可以换算为日期会有更好的体验 比如2025-4-15 12:32:11