#!/usr/bin/haserl <%in p/common.cgi %> <% page_title="Majestic Endpoints" %> <%in p/header.cgi %>

Video

rtsp://root:12345@<%= $network_address %>/stream=0
RTSP main stream.
rtsp://root:12345@<%= $network_address %>/stream=1
RTSP sub stream.
http://<%= $network_address %>/mjpeg
MJPEG video stream.
http://<%= $network_address %>/video.mp4
MP4 video stream.
http://<%= $network_address %>/hls
HLS live-streaming in web browser.
http://<%= $network_address %>/mjpeg.html
MJPEG live-streaming in web browser.

Audio

http://<%= $network_address %>/audio.opus
Opus audio stream.
http://<%= $network_address %>/audio.m4a
AAC audio stream.
http://<%= $network_address %>/audio.pcm
Raw PCM audio stream.
http://<%= $network_address %>/audio.alaw
A-law compressed audio stream.
http://<%= $network_address %>/audio.ulaw
μ-law compressed audio stream.
http://<%= $network_address %>/audio.g711a
G.711 A-law audio stream.
http://<%= $network_address %>/play_audio
Play audio file on camera speaker.

Images

http://<%= $network_address %>/image.jpg
Snapshot in JPEG format.
http://<%= $network_address %>/image.heif
Snapshot in HEIF format.
http://<%= $network_address %>/image.yuv420
Snapshot in YUV420 format.

Night

http://<%= $network_address %>/night/on
Turn on night mode.
http://<%= $network_address %>/night/off
Turn off night mode.
http://<%= $network_address %>/night/toggle
Toggle night mode.
http://<%= $network_address %>/night/ircut
Toggle camera ircut.
http://<%= $network_address %>/night/light
Toggle camera light.

Monitoring

http://<%= $network_address %>/api/v1/config.json
Default Majestic config in JSON format.
http://<%= $network_address %>/api/v1/config.schema.json
Available Majestic settings in JSON format.
https://github.com/openipc/wiki
Available Majestic settings in YAML format.
http://<%= $network_address %>/metrics
Node exporter for Prometheus.
<%in p/footer.cgi %>