| | |
| | | import com.genersoft.iot.vmp.conf.exception.ControllerException; |
| | | import com.genersoft.iot.vmp.conf.security.JwtUtils; |
| | | import com.genersoft.iot.vmp.media.service.IMediaServerService; |
| | | import com.genersoft.iot.vmp.media.zlm.SendRtpPortManager; |
| | | import com.genersoft.iot.vmp.media.event.hook.HookSubscribe; |
| | | import com.genersoft.iot.vmp.media.event.hook.IHookSubscribe; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.MediaServer; |
| | | import com.genersoft.iot.vmp.media.bean.MediaServer; |
| | | import com.genersoft.iot.vmp.service.*; |
| | | import com.genersoft.iot.vmp.service.bean.MediaServerLoad; |
| | | import com.genersoft.iot.vmp.storager.IRedisCatchStorage; |
| | |
| | | @RequestMapping("/api/server") |
| | | public class ServerController { |
| | | |
| | | @Autowired |
| | | private HookSubscribe zlmHttpHookSubscribe; |
| | | |
| | | @Autowired |
| | | private IMediaServerService mediaServerService; |
| | |
| | | @Autowired |
| | | private IRedisCatchStorage redisCatchStorage; |
| | | |
| | | @Autowired |
| | | private SendRtpPortManager sendRtpPortManager; |
| | | |
| | | |
| | | @GetMapping(value = "/media_server/list") |
| | |
| | | } |
| | | } |
| | | return jsonObject; |
| | | } |
| | | |
| | | @GetMapping(value = "/hooks") |
| | | @ResponseBody |
| | | @Operation(summary = "获取当前所有hook") |
| | | public List<IHookSubscribe> getHooks() { |
| | | return zlmHttpHookSubscribe.getAll(); |
| | | } |
| | | |
| | | @GetMapping(value = "/system/info") |