#!/usr/bin/haserl
<%in p/common.cgi %>
<%
page_title="Конечные точки"
%>
<%in p/header.cgi %>
Видео
- http://<%= $network_address %>/mjpeg
- MJPEG video stream.
- http://<%= $network_address %>/video.mp4
- fMP4 video stream.
- rtsp://username:password@<%= $network_address %>/stream=0
- RTSP main stream (video0).
- rtsp://username:password@<%= $network_address %>/stream=1
- RTSP substream (video1).
- http://<%= $network_address %>/hls
- HLS live-streaming in web browser.
- http://<%= $network_address %>/webrtc
- WebRTC live-streaming in web browser.
- http://<%= $network_address %>/mjpeg.html
- MJPEG & MP3 live-streaming in web browser.
Аудио
- http://<%= $network_address %>/audio.opus
- Opus audio stream.
- http://<%= $network_address %>/audio.pcm
- Raw PCM audio stream.
- http://<%= $network_address %>/audio.m4a
- AAC audio stream.
- http://<%= $network_address %>/audio.mp3
- MP3 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's speaker.1,3
Accepts POST requests with audio file as a parameter.
Фотографии
- http://<%= $network_address %>/image.jpg
- Snapshot in JPEG format.
Optional parameters:2,4
- width, height - size of resulting image
- qfactor - JPEG quality factor (1-99)
- color2gray - convert to grayscale
- crop - crop resulting image as 16x16x320x320
- http://<%= $network_address %>/image.heif
- Snapshot in HEIF format.
- http://<%= $network_address %>/image.yuv420
- Snapshot in YUV420 format.
- http://<%= $network_address %>/image.dng
- Snapshot in Adobe DNG format (raw).3
Ночной API
- http://<%= $network_address %>/night/on
- Turn on night mode.
- http://<%= $network_address %>/night/off
- Turn off night mode.
- http://<%= $network_address %>/night/toggle
- Toggle current night mode.
Мониторинг
- http://<%= $network_address %>/api/v1/config.json
- Actual Majestic config in JSON format.
- http://<%= $network_address %>/metrics
- Node exporter for Prometheus.
Доступны другие примеры вики.
<%in p/footer.cgi %>