Cameras — a simple video surveillance single-page application for reading webrtc streams from mediamtx
Important
- You have properly functioning hosting with reachable domain
https://example.com
. - You have already configured mediamtx and it is possible to read streams by visiting
https://www.example.com:8889/stream
.
- Upload contents of
build
folder tohttps://example.com/cameras/
. - Restrict access to
https://example.com/cameras/restricted/
via http authentication . - Configure file
https://example.com/cameras/restricted/cameras.json
:caption
- will be displayed on application's header.host
- specifies domain and port where mediamtx server is run.streams
- array of arrays of streams wherecaption
specifies stream caption for humansstream-name
specifies stream name on mediamtx servermaterial-icon
specifies stream icon from Material Icons collection.- in addition you can rotate stream display clockwise or counterclockwise providing fourth element like
{"rotate":90}
or{"rotate":-90}
.
- Edit files
https://example.com/cameras/restricted/index.php
andhttps://example.com/cameras/auth.php
: replaceyour_secret_key_should_be_here
by your own private secret key (should be equal for both files). - In your
mediamtx.yml
find parameterauthHTTPAddress
and set there the linkhttps://example.com/cameras/auth.php
.