| | |
| | | import com.genersoft.iot.vmp.conf.UserSetting; |
| | | import com.genersoft.iot.vmp.conf.VersionInfo; |
| | | import com.genersoft.iot.vmp.conf.exception.ControllerException; |
| | | import com.genersoft.iot.vmp.media.zlm.SendRtpPortManager; |
| | | 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; |
| | |
| | | |
| | | @Autowired |
| | | private IRedisCatchStorage redisCatchStorage; |
| | | |
| | | @Autowired |
| | | private SendRtpPortManager sendRtpPortManager; |
| | | |
| | | |
| | | @GetMapping(value = "/media_server/list") |
| | |
| | | |
| | | return result; |
| | | } |
| | | |
| | | @PostMapping(value = "/test/getPort") |
| | | @ResponseBody |
| | | public int getPort() { |
| | | int result = sendRtpPortManager.getNextPort(mediaServerService.getDefaultMediaServer()); |
| | | System.out.println(result); |
| | | return result; |
| | | } |
| | | } |