WebRTC installation problem

I just tried to install RTC Camera integration in HA, but I got an error that I can’t decrypt. I installed the module via HACS by taking it from its AlexxIT/WebRTC repository, then I tried to install the integration from Configuration> Integrations> Add Integration> WebRTC, but immediately after that I got this error:

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera ([documentation](https://github.com/AlexxIT/WebRTC), [issues](https://github.com/AlexxIT/WebRTC/issues))
First occurred: 13:18:22 (1 occurrences)
Last logged: 13:18:22

Error during setup of component webrtc

Traceback (most recent call last): 
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component result = await task 
File "/config/custom_components/webrtc/__init__.py", line 75, in async_setup utils.register_static_path(hass.http.app, url_path, path) 
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path app['allow_cors'](route) 
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in __getitem__ return self._state[key] 
KeyError: 'allow_cors'

Could you help me?
Thank you.

2 Likes

Hello @anon63427907 ,
thank you for reply. The error has been overcome, but now from Yaml page I have this error:

**Custom element doesn't exist: webrtc-camera.**

Is it necessary to configure UDP port min and max? Or what to do?
Thanks again .

This is about installing the custom card into frontend, not about udp. Check resources in the dashboard and be sure that respective js is included. And be sure that you have added integration to home assistant installation. Check example below

1 Like

Hello @anon63427907 ,
it was a resource declaration issue, now everything works fine.
Thank you.