playStart 补充参数 isSubStream

This commit is contained in:
shikong 2023-12-26 08:41:27 +08:00
parent b35db44aeb
commit 440b316c4c
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,8 @@ public interface WvpProxyClient {
@GetMapping("/api/play/start/{deviceId}/{channelId}")
JsonResponse<StreamContent> playStart(@RequestHeader("access-token") String token,
@PathVariable String deviceId,
@PathVariable String channelId);
@PathVariable String channelId,
@RequestParam boolean isSubStream);
@GetMapping("/api/play/stop/{deviceId}/{channelId}")
JsonResponse<Void> playStop(@RequestHeader("access-token") String token,
@PathVariable String deviceId,

View File

@ -385,7 +385,7 @@ public class WvpService {
log.info("设备通道信息 => {}", dc);
try {
StreamContent data = wvpProxyClient.playStart(token[0], dc.getDeviceId(), dc.getChannelId()).getData();
StreamContent data = wvpProxyClient.playStart(token[0], dc.getDeviceId(), dc.getChannelId(), false).getData();
log.info("实时流信息 {}", data);
String url = StringUtils.joinWith("/",
@ -422,7 +422,6 @@ public class WvpService {
log.info("设备通道信息 => {}", dc);
wvpProxyClient.playStop(token, dc.getDeviceId(), dc.getChannelId(), false);
wvpProxyClient.playStop(token, dc.getDeviceId(), dc.getChannelId(), true);
}
private String login() {