| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.IOException; |
| | | import java.net.ConnectException; |
| | | import java.util.HashMap; |
| | | import java.util.HashSet; |
| | | import java.util.Map; |
| | |
| | | responseJSON = JSON.parseObject(responseStr); |
| | | } |
| | | } |
| | | } catch (IOException e) { |
| | | } catch (ConnectException e) { |
| | | logger.error(String.format("连接ZLM失败: %s, %s", e.getCause().getMessage(), e.getMessage())); |
| | | logger.info("请检查media配置并确认ZLM已启动..."); |
| | | }catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | |
| | | public JSONObject setServerConfig(Map<String, Object> param){ |
| | | return sendPost("setServerConfig",param); |
| | | } |
| | | |
| | | public JSONObject openRtpServer(Map<String, Object> param){ |
| | | return sendPost("openRtpServer",param); |
| | | } |
| | | } |