| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.io.File; |
| | |
| | | if (mediaServerItem == null) { |
| | | return null; |
| | | } |
| | | if (StringUtils.isEmpty(mediaServerItem.getRecordAssistPort())) { |
| | | if (mediaServerItem.getRecordAssistPort() > 0) { |
| | | logger.warn("未启用Assist服务"); |
| | | return null; |
| | | } |
| | |
| | | return sendGet(mediaServerItem, "api/record/file/duration",param, callback); |
| | | } |
| | | |
| | | public JSONObject addStreamCallInfo(MediaServerItem mediaServerItem, String app, String stream, String callId, RequestCallback callback){ |
| | | Map<String, Object> param = new HashMap<>(); |
| | | param.put("app",app); |
| | | param.put("stream",stream); |
| | | param.put("callId",callId); |
| | | return sendGet(mediaServerItem, "api/record/addStreamCallInfo",param, callback); |
| | | } |
| | | |
| | | } |