| | |
| | | import com.genersoft.iot.vmp.conf.SipConfig; |
| | | import com.genersoft.iot.vmp.conf.UserSetting; |
| | | import com.genersoft.iot.vmp.conf.VersionInfo; |
| | | import com.genersoft.iot.vmp.media.zlm.ZLMHttpHookSubscribe; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.IHookSubscribe; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem; |
| | | import com.genersoft.iot.vmp.service.IMediaServerService; |
| | | import com.genersoft.iot.vmp.utils.SpringBeanFactory; |
| | |
| | | public class ServerController { |
| | | |
| | | @Autowired |
| | | private ConfigurableApplicationContext context; |
| | | private ZLMHttpHookSubscribe zlmHttpHookSubscribe; |
| | | |
| | | @Autowired |
| | | private IMediaServerService mediaServerService; |
| | |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation("获取当前所有hook") |
| | | @GetMapping(value = "/hooks") |
| | | @ResponseBody |
| | | public WVPResult<List<IHookSubscribe>> getHooks(){ |
| | | WVPResult<List<IHookSubscribe>> result = new WVPResult<>(); |
| | | result.setCode(0); |
| | | result.setMsg("success"); |
| | | List<IHookSubscribe> all = zlmHttpHookSubscribe.getAll(); |
| | | result.setData(all); |
| | | return result; |
| | | } |
| | | |
| | | // @ApiOperation("当前进行中的动态任务") |
| | | // @GetMapping(value = "/dynamicTask") |
| | | // @ResponseBody |