Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 9m5s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 42s
24 lines
827 B
C#
24 lines
827 B
C#
namespace Heimdall.Agent.Services;
|
|
|
|
/// <summary>
|
|
/// Immutable camera assignment consumed by the capture pipeline. Built either
|
|
/// from the Central settings keys (<c>camera.<id>.name|rtsp|sub_rtsp|enabled</c>)
|
|
/// or from the local <c>Agent:Cameras</c> fallback.
|
|
/// </summary>
|
|
public sealed record AgentCameraConfig(
|
|
Guid CameraId,
|
|
string Name,
|
|
string RtspUrl,
|
|
string? SubRtspUrl,
|
|
bool Enabled,
|
|
Heimdall.Application.DTOs.DetectionProfileDto? DetectionProfile = null,
|
|
bool RecordingEnabled = false,
|
|
bool EventRecordingEnabled = false)
|
|
{
|
|
/// <summary>
|
|
/// URL used for AI capture: the low-res sub-stream when available,
|
|
/// otherwise the primary stream.
|
|
/// </summary>
|
|
public string EffectiveRtspUrl => !string.IsNullOrWhiteSpace(SubRtspUrl) ? SubRtspUrl : RtspUrl;
|
|
}
|