支持兼容接口拉起离线的通道
parent
1f02cb9178
commit
8803c2ac43
|
@ -104,11 +104,6 @@ public class ApiStreamController {
|
|||
result.put("error","channel[ " + code + " ]未找到");
|
||||
resultDeferredResult.setResult(result);
|
||||
return resultDeferredResult;
|
||||
}else if (deviceChannel.getStatus() == 0) {
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("error","channel[ " + code + " ]offline");
|
||||
resultDeferredResult.setResult(result);
|
||||
return resultDeferredResult;
|
||||
}
|
||||
MediaServerItem newMediaServerItem = playService.getNewMediaServerItem(device);
|
||||
playService.play(newMediaServerItem, serial, code, (mediaServerItem, response)->{
|
||||
|
|
Loading…
Reference in New Issue