package com.ruoyi.dataInterchange.controller;
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.dataInterchange.server.DOWNRealvideoMsgStartupService;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
/**
|
* 实时音视频控制器
|
*
|
* @author zhibing.pu
|
* @Date 2025/3/21 11:11
|
*/
|
@RestController
|
@RequestMapping("/downRealVideoMsgStartupController")
|
public class DownRealVideoMsgStartupController {
|
|
@Resource
|
private DOWNRealvideoMsgStartupService downRealvideoMsgStartupService;
|
|
|
/**
|
* 发起实时音视频请求
|
*
|
* @param vehicleNo 车牌号
|
* @return
|
*/
|
public R<?> startupRealVideo(@RequestParam("inferiorPlatformId") Integer inferiorPlatformId, @RequestParam("vehicleNo") String vehicleNo) {
|
R realVideo = downRealvideoMsgStartupService.startupRealVideo(inferiorPlatformId, vehicleNo);
|
if (realVideo.getCode() != 200) {
|
return realVideo;
|
}
|
//发送成功,定时任务还是获取响应结果
|
int num = 0;
|
while (true) {
|
|
}
|
}
|
}
|