细化接口内容
This commit is contained in:
@@ -32,11 +32,23 @@ public class CamerasController : ControllerBase
|
||||
var devices = _manager.GetAllDevices().Select(d => new
|
||||
{
|
||||
d.Id,
|
||||
d.Config.IpAddress,
|
||||
d.Config.Name,
|
||||
d.Config.RenderHandle,
|
||||
d.Config.StreamType,
|
||||
d.Config.IpAddress,
|
||||
Brand = d.Config.Brand.ToString(),
|
||||
Status = d.Status.ToString(),
|
||||
d.RealFps,
|
||||
d.TotalFrames
|
||||
d.TotalFrames,
|
||||
d.IsPhysicalOnline,
|
||||
d.IsOnline,
|
||||
d.IsRunning,
|
||||
d.Width,
|
||||
d.Height,
|
||||
d.PreprocessSettings.AllowEnlarge,
|
||||
d.PreprocessSettings.AllowShrink,
|
||||
ScalingWidth = d.PreprocessSettings.Width,
|
||||
ScalingHeight = d.PreprocessSettings.Height,
|
||||
});
|
||||
return Ok(devices);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user