add a monitoring camera setting for cetana

This commit is contained in:
Your Name
2026-10-31 21:08:26 +03:30
parent 33aebe9b14
commit 093e0b9d1a
11 changed files with 732 additions and 9 deletions
@@ -0,0 +1,36 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("live_monitoring", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="camera",
name="protocol",
field=models.CharField(
blank=True,
choices=[
("rtsp", "RTSP (Real Time Streaming Protocol)"),
("rtmp", "RTMP (Real-Time Messaging Protocol)"),
("hls", "HLS (HTTP Live Streaming)"),
("dash", "MPEG-DASH"),
("webrtc", "WebRTC"),
("mjpeg", "MJPEG over HTTP"),
("http", "HTTP Progressive (MP4/WebM)"),
("onvif", "ONVIF Media Profile"),
("srt", "SRT (Secure Reliable Transport)"),
],
default="",
help_text="Streaming standard. Leave blank to use the system default protocol.",
max_length=32,
),
),
migrations.AlterField(
model_name="camera",
name="stream_url",
field=models.CharField(max_length=1000),
),
]