调整节点管理代码结构
parent
150e7a3199
commit
63a35ffaaf
|
@ -5,9 +5,11 @@ import com.genersoft.iot.vmp.common.StreamInfo;
|
|||
import com.genersoft.iot.vmp.media.bean.MediaInfo;
|
||||
import com.genersoft.iot.vmp.media.service.IMediaNodeServerService;
|
||||
import com.genersoft.iot.vmp.media.zlm.dto.MediaServer;
|
||||
import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service("abl")
|
||||
public class ABLMediaNodeServerService implements IMediaNodeServerService {
|
||||
|
@ -81,4 +83,44 @@ public class ABLMediaNodeServerService implements IMediaNodeServerService {
|
|||
public MediaInfo getMediaInfo(MediaServer mediaServerItem, String app, String stream) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean pauseRtpCheck(MediaServer mediaServer, String streamKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean resumeRtpCheck(MediaServer mediaServer, String streamKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFfmpegCmd(MediaServer mediaServer, String cmdKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WVPResult<String> addFFmpegSource(MediaServer mediaServer, String srcUrl, String dstUrl, int timeoutMs, boolean enableAudio, boolean enableMp4, String ffmpegCmdKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WVPResult<String> addStreamProxy(MediaServer mediaServer, String app, String stream, String url, boolean enableAudio, boolean enableMp4, String rtpType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean delFFmpegSource(MediaServer mediaServer, String streamKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean delStreamProxy(MediaServer mediaServer, String streamKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getFFmpegCMDs(MediaServer mediaServer) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -210,22 +210,22 @@ public class ZLMMediaServerStatusManger {
|
|||
}, (int)(mediaServerItem.getHookAliveInterval() * 2 * 1000));
|
||||
}
|
||||
private void initPort(MediaServer mediaServerItem, ZLMServerConfig zlmServerConfig) {
|
||||
if (mediaServerItem.getHttpSSlPort() == 0) {
|
||||
if (mediaServerItem.getHttpSSlPort() != 0) {
|
||||
mediaServerItem.setHttpSSlPort(zlmServerConfig.getHttpSSLport());
|
||||
}
|
||||
if (mediaServerItem.getRtmpPort() == 0) {
|
||||
if (mediaServerItem.getRtmpPort() != 0) {
|
||||
mediaServerItem.setRtmpPort(zlmServerConfig.getRtmpPort());
|
||||
}
|
||||
if (mediaServerItem.getRtmpSSlPort() == 0) {
|
||||
if (mediaServerItem.getRtmpSSlPort() != 0) {
|
||||
mediaServerItem.setRtmpSSlPort(zlmServerConfig.getRtmpSslPort());
|
||||
}
|
||||
if (mediaServerItem.getRtspPort() == 0) {
|
||||
if (mediaServerItem.getRtspPort() != 0) {
|
||||
mediaServerItem.setRtspPort(zlmServerConfig.getRtspPort());
|
||||
}
|
||||
if (mediaServerItem.getRtspSSLPort() == 0) {
|
||||
if (mediaServerItem.getRtspSSLPort() != 0) {
|
||||
mediaServerItem.setRtspSSLPort(zlmServerConfig.getRtspSSlport());
|
||||
}
|
||||
if (mediaServerItem.getRtpProxyPort() == 0) {
|
||||
if (mediaServerItem.getRtpProxyPort() != 0) {
|
||||
mediaServerItem.setRtpProxyPort(zlmServerConfig.getRtpProxyPort());
|
||||
}
|
||||
mediaServerItem.setHookAliveInterval(10F);
|
||||
|
|
Loading…
Reference in New Issue