| | |
| | | import com.ard.sample.manage.model.dto.LiveTypeDTO; |
| | | import com.ard.sample.manage.model.param.RemoteDebugParam; |
| | | import com.ard.sample.manage.model.receiver.LiveCapacityReceiver; |
| | | import com.ard.sample.manage.service.IDeviceService; |
| | | import com.ard.sample.manage.service.ILiveStreamService; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @ApiOperation("获取video_id") |
| | | @PostMapping("/videoid/{sn}") |
| | | public String getVideoId(@PathVariable String sn) { |
| | | String videoId = ""; |
| | | public ResponseResult<LiveTypeDTO> getVideoId(@PathVariable String sn) { |
| | | LiveTypeDTO liveTypeDTO = new LiveTypeDTO(); |
| | | try{ |
| | | videoId = _liveStreamHandler.getLiveParam(sn).getVideoId(); |
| | | liveTypeDTO = _liveStreamHandler.getLiveParam(sn); |
| | | |
| | | } |
| | | catch (Exception e){ |
| | | videoId = e.getMessage(); |
| | | // videoId = e.getMessage(); |
| | | e.printStackTrace(); |
| | | } |
| | | return videoId; |
| | | return ResponseResult.success(liveTypeDTO); |
| | | } |
| | | |
| | | /** |