视频墙设置

merge-requests/4/merge
qiushui 4 years ago
parent 3398c3efdb
commit b86069e44b

@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List; import java.util.List;
@Api(value = "realTime",tags = "实时监控") @Api(value = "realTime",tags = "实时监控")
@ -39,6 +40,16 @@ public class RealTimeController {
return Result.success(cameraService.allCameras()); return Result.success(cameraService.allCameras());
} }
@GetMapping("/wallStyle")
@ApiOperation(value = "视频墙样式")
//@SessionHandler
public Result<List<Integer>> wallStyle() {
List<Integer> styles = new ArrayList<>(2);
styles.add(configProperties.getVideoStyleConfig().getVideoStyleRow());
styles.add(configProperties.getVideoStyleConfig().getVideoStyleColumn());
return Result.success(styles);
}
@GetMapping("/videoServer") @GetMapping("/videoServer")
@ApiOperation(value = "视频服务器地址") @ApiOperation(value = "视频服务器地址")
public Result<String> getVideoServer(){ public Result<String> getVideoServer(){

@ -46,5 +46,5 @@ ksec:
port: 9000 port: 9000
# ------------ 实时视频流 全部页面的格式 行列数量 # ------------ 实时视频流 全部页面的格式 行列数量
videoStyleConfig: videoStyleConfig:
videoStyleRow: 4 videoStyleRow: 2
videoStyleColumn: 3 videoStyleColumn: 2

Loading…
Cancel
Save