playStart 补充参数 isSubStream
This commit is contained in:
parent
b35db44aeb
commit
440b316c4c
@ -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,
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user