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
buildfolder 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 wherecaptionspecifies stream caption for humansstream-namespecifies stream name on mediamtx servermaterial-iconspecifies 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.phpandhttps://example.com/cameras/auth.php: replaceyour_secret_key_should_be_hereby your own private secret key (should be equal for both files). - In your
mediamtx.ymlfind parameterauthHTTPAddressand set there the linkhttps://example.com/cameras/auth.php.


