mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 14:37:53 +08:00
去除录像倍速限制
This commit is contained in:
parent
3b4a6018cb
commit
5bbc15d023
@ -215,7 +215,7 @@ public class PlaybackController {
|
|||||||
|
|
||||||
@Operation(summary = "回放倍速播放", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
@Operation(summary = "回放倍速播放", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
@Parameter(name = "streamId", description = "回放流ID", required = true)
|
@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}")
|
@GetMapping("/speed/{streamId}/{speed}")
|
||||||
public void playSpeed(@PathVariable String streamId, @PathVariable Double speed) {
|
public void playSpeed(@PathVariable String streamId, @PathVariable Double speed) {
|
||||||
log.info("playSpeed: "+streamId+", "+speed);
|
log.info("playSpeed: "+streamId+", "+speed);
|
||||||
@ -225,10 +225,6 @@ public class PlaybackController {
|
|||||||
log.warn("streamId不存在!");
|
log.warn("streamId不存在!");
|
||||||
throw new ControllerException(ErrorCode.ERROR400.getCode(), "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());
|
Device device = deviceService.getDeviceByDeviceId(inviteInfo.getDeviceId());
|
||||||
DeviceChannel channel = channelService.getOneById(inviteInfo.getChannelId());
|
DeviceChannel channel = channelService.getOneById(inviteInfo.getChannelId());
|
||||||
try {
|
try {
|
||||||
|
|||||||
1
zlm.md
1
zlm.md
@ -13,4 +13,3 @@
|
|||||||
3. loadMP4File扩展, 增加默认seek值和默认倍速,开始时直接从这个位置开始,并使用指定的倍速
|
3. loadMP4File扩展, 增加默认seek值和默认倍速,开始时直接从这个位置开始,并使用指定的倍速
|
||||||
4. 支持下载指定取件的mp4文件,这个区间可能包括多个文件和文件的一部分。
|
4. 支持下载指定取件的mp4文件,这个区间可能包括多个文件和文件的一部分。
|
||||||
5. 希望seek接口和倍速接口可以去除schema的必选,作为可选项,不传则默认全部
|
5. 希望seek接口和倍速接口可以去除schema的必选,作为可选项,不传则默认全部
|
||||||
6. 可选: seek值如果可以换算为日期,会有更好的体验, 比如2025-4-15 12:32:11
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user