修复网页观看问题
parent
469717523b
commit
e370cf880d
|
@ -6,6 +6,8 @@ import com.genersoft.iot.vmp.streamProxy.bean.StreamProxy;
|
|||
|
||||
public interface IStreamProxyPlayService {
|
||||
|
||||
StreamInfo start(int id);
|
||||
|
||||
void start(int id, ErrorCallback<StreamInfo> callback);
|
||||
|
||||
StreamInfo startProxy(StreamProxy streamProxy);
|
||||
|
|
|
@ -89,6 +89,15 @@ public class StreamProxyPlayServiceImpl implements IStreamProxyPlayService {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamInfo start(int id) {
|
||||
StreamProxy streamProxy = streamProxyMapper.select(id);
|
||||
if (streamProxy == null) {
|
||||
throw new ControllerException(ErrorCode.ERROR404.getCode(), "代理信息未找到");
|
||||
}
|
||||
return startProxy(streamProxy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamInfo startProxy(StreamProxy streamProxy){
|
||||
if (!streamProxy.isEnable()) {
|
||||
|
|
Loading…
Reference in New Issue