AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.55k stars 183 forks source link

webrtc-camera custom card and api #696

Closed Nik71git closed 6 months ago

Nik71git commented 6 months ago

Hi, my webrtc-camera custom card is configured as below:

type: custom:webrtc-camera
server: http://192.168.xxx.xxx:1984/
streams:
  - url: cam1
  - url: ''
title: terrazzo
media: video
mode: webrtc
ui: true
poster: /local/cctv.png
intersection: 0.25

and api section on go2rtc config file as below:

api:
  listen: ":1984"  
  username: ""  # default "", but I prefer auth for WebUI
  password: ""   # default "", but I prefer auth for WebUI

when I add credentials on api section webrtc-camera card stop working, how can I specify credentials on it?

Nik71git commented 6 months ago

solved, obviously http://user:password@ip_address:port