| | |
| | | import com.ard.common.utils.SecurityUtils; |
| | | import com.ard.sample.common.model.ResponseResult; |
| | | import com.ard.sample.component.mqtt.model.ChannelName; |
| | | import com.ard.sample.component.websocket.handler.LiveStreamHandler; |
| | | import com.ard.sample.manage.model.dto.CapacityDeviceDTO; |
| | | 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.ILiveStreamService; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | |
| | | private ILiveStreamService liveStreamService; |
| | | |
| | | @Autowired |
| | | private LiveStreamHandler _liveStreamHandler; |
| | | |
| | | @Autowired |
| | | private ObjectMapper mapper; |
| | | |
| | | /** |
| | |
| | | return ResponseResult.success(liveCapacity); |
| | | } |
| | | |
| | | @ApiOperation("获取video_id") |
| | | @PostMapping("/videoid/{sn}") |
| | | public String getVideoId(@PathVariable String sn) { |
| | | String videoId = ""; |
| | | try{ |
| | | videoId = _liveStreamHandler.getLiveParam(sn).getVideoId(); |
| | | } |
| | | catch (Exception e){ |
| | | videoId = e.getMessage(); |
| | | e.printStackTrace(); |
| | | } |
| | | return videoId; |
| | | } |
| | | |
| | | /** |
| | | * Live streaming according to the parameters passed in from the web side. |
| | | * |