Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

"Blank" screen in web browser #86

Open
aweussom opened this issue Nov 9, 2020 · 4 comments
Open

"Blank" screen in web browser #86

aweussom opened this issue Nov 9, 2020 · 4 comments

Comments

@aweussom
Copy link

aweussom commented Nov 9, 2020

Hi. My balenacam is not working. When I try to access the WebRTC stream, everything but the stream itself loads.
I can double-click to go fullscreen etc - but no video.
The camera and RPI 3 A+ is confirmed working.

From the logs - the only weird thing is the .local address instead of the IP my computer is on?


09.11.20 12:20:45 (+0100) <balena-cam> https://github.com/balena-io-playground/balena-cam 09.11.20 12:20:45 (+0100) <balena-cam> ############################################################# 09.11.20 12:20:45 (+0100) <balena-cam> 09.11.20 12:20:45 (+0100) <balena-cam> ======== Running on http://0.0.0.0:80 ======== 09.11.20 12:20:45 (+0100) <balena-cam> (Press CTRL+C to quit) 09.11.20 12:21:00 (+0100) <balena-cam> /usr/local/lib/python3.5/dist-packages/pyee/_base.py:81: RuntimeWarning: coroutine 'on_iceconnectionstatechange' was never awaited 09.11.20 12:21:00 (+0100) <balena-cam> f(*args, **kwargs) 09.11.20 12:21:00 (+0100) <balena-cam> Task exception was never retrieved 09.11.20 12:21:00 (+0100) <balena-cam> future: <Task finished coro=<RTCPeerConnection.__connect() done, defined at /usr/local/lib/python3.5/dist-packages/aiortc/rtcpeerconnection.py:554> exception=ValueError("'2e20163f-0920-4908-b6b7-f6e3b8ce882a.local' does not appear to be an IPv4 or IPv6 address",)> 09.11.20 12:21:00 (+0100) <balena-cam> Traceback (most recent call last): 09.11.20 12:21:00 (+0100) <balena-cam> File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step 09.11.20 12:21:00 (+0100) <balena-cam> result = coro.send(None) 09.11.20 12:21:00 (+0100) <balena-cam> File "/usr/local/lib/python3.5/dist-packages/aiortc/rtcpeerconnection.py", line 559, in __connect 09.11.20 12:21:00 (+0100) <balena-cam> await iceTransport.start(self.__remoteIce[transceiver]) 09.11.20 12:21:00 (+0100) <balena-cam> File "/usr/local/lib/python3.5/dist-packages/aiortc/rtcicetransport.py", line 284, in start 09.11.20 12:21:00 (+0100) <balena-cam> await self._connection.connect() 09.11.20 12:21:00 (+0100) <balena-cam> File "/usr/local/lib/python3.5/dist-packages/aioice/ice.py", line 356, in connect 09.11.20 12:21:00 (+0100) <balena-cam> if (protocol.local_candidate.can_pair_with(remote_candidate) and 09.11.20 12:21:00 (+0100) <balena-cam> File "/usr/local/lib/python3.5/dist-packages/aioice/candidate.py", line 114, in can_pair_with 09.11.20 12:21:00 (+0100) <balena-cam> b = ipaddress.ip_address(other.host) 09.11.20 12:21:00 (+0100) <balena-cam> File "/usr/lib/python3.5/ipaddress.py", line 54, in ip_address 09.11.20 12:21:00 (+0100) <balena-cam> address) 09.11.20 12:21:00 (+0100) <balena-cam> ValueError: '2e20163f-0920-4908-b6b7-f6e3b8ce882a.local' does not appear to be an IPv4 or IPv6 address

@aweussom
Copy link
Author

aweussom commented Nov 9, 2020

@aweussom
Copy link
Author

aweussom commented Nov 9, 2020

Looks like some sort of Bonjour-related problem?
Also tested on my Cellphone wifi sharing, to remove Bonjour from the equation. Same problem

@mbalamat
Copy link
Contributor

mbalamat commented Nov 9, 2020

@aweussom balenaCam doesn't work with mdns adresses. In order to disable them see here https://github.com/balenalabs/balena-cam#additional-information. If you are on chrome and you can't find the flags see #83 .

@aweussom
Copy link
Author

That option is not available in my Chrome.
I blocked mDNS with the windows 10 firewall, and that worked fine:
[In a dministrator powershell]

Set-NetFirewallRule -DisplayName "Google Chrome (mDNS-In)" -Enabled True -Action Block

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants