| | |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | | if (data != null) { |
| | | result.put("key", data.getString("key")); |
| | | StreamInfo streamInfoResult = mediaService.getStreamInfoByAppAndStreamWithCheck("convert", streamId, mediaInfo.getId()); |
| | | StreamInfo streamInfoResult = mediaService.getStreamInfoByAppAndStreamWithCheck("convert", streamId, mediaInfo.getId(), false); |
| | | result.put("data", streamInfoResult); |
| | | } |
| | | }else { |
| | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | @ApiOperation("停止语音广播") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "deviceId", value = "设备Id", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "channelId", value = "通道Id", dataTypeClass = String.class), |
| | | }) |
| | | @GetMapping("/broadcast/stop/{deviceId}/{channelId}") |
| | | @PostMapping("/broadcast/stop/{deviceId}/{channelId}") |
| | | public WVPResult<String> stopBroadcastA(@PathVariable String deviceId, @PathVariable String channelId) { |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("停止语音广播API调用"); |
| | | } |
| | | playService.stopAudioBroadcast(deviceId, channelId); |
| | | return new WVPResult<>(0, "success", null); |
| | | } |
| | | |
| | | @ApiOperation("获取所有的ssrc") |
| | | @GetMapping("/ssrc") |
| | | public WVPResult<JSONObject> getSsrc() { |