DreamineVMS.Web 1.0.0.0
DreamineVMS 에이전트가 제공하는 HLS 카메라 영상을 브라우저에서 관리·재생하는 원격 CCTV 웹 서비스입니다.
로딩중...
검색중...
일치하는것 없음
CameraDevice.cs
이 파일의 문서화 페이지로 가기
2
11public sealed class CameraDevice
12{
21 public required string Id { get; init; }
22
31 public required string Name { get; init; }
32
41 public required string Host { get; init; }
42
51 public required string RtspUrl { get; init; }
52
61 public int DisplayOrder { get; init; }
62
71 public string TenantId { get; init; } = "";
72
81 public bool Enabled { get; init; } = true;
82
91 public bool AutoReconnect { get; init; } = true;
92
101 public bool IsPublic { get; init; } = false;
102
111 public bool IsDirectHls =>
112 RtspUrl.StartsWith("http://", StringComparison.OrdinalIgnoreCase) ||
113 RtspUrl.StartsWith("https://", StringComparison.OrdinalIgnoreCase);
114
123 public string HlsUrl => IsDirectHls ? RtspUrl : $"/hls/{TenantId}/{Id}/index.m3u8";
124}