android-emulator-container-scripts icon indicating copy to clipboard operation
android-emulator-container-scripts copied to clipboard

WebRTC view not work but the png view working

Open maithanhtan opened this issue 3 years ago • 10 comments

Hi Team, I am trying to find why my webrtc view not working: It show connected when login with white screen. Afew second later it show Disconnected state with dark screen. From browser console log I did not find anything abnormal image

Can you please help to guide how to troubleshoot this case.

FYI: the png view is working so i think the emulator if work. there something wrong for the webrtc view only

Thank you

maithanhtan avatar May 07 '21 03:05 maithanhtan

This is most likely a networking issue. Could you share the docker logs. Only the lines starting with: "video:" are of importance.

pokowaka avatar May 11 '21 15:05 pokowaka

emulator_1 | video: (network.cc:929): Connect failed with 99 emulator_1 | video: (video_stream_encoder.cc:1317): Number of frames: captured 204, dropped (due to congestion window pushback) 0, dropped (due to encoder blocked) 0, interval_ms 60000

ashikkaiser avatar Jun 19 '21 13:06 ashikkaiser

The 'Connect failed with 99' is a red herring. The page: chrome://webrtc-internals/ in chrome will show debug information about WebRTC connections that are being established.

pokowaka avatar Jun 22 '21 11:06 pokowaka

I am having the same issue. chrome://webrtc-internals does not give much information, it just says the connection failed

built-by-as avatar Aug 18 '21 10:08 built-by-as

Same issue, latest master branch w/ Firefox 93.0 64 bits on Linux

chgans avatar Nov 03 '21 05:11 chgans

error in firefox console is:

WebRTC: ICE failed, add a STUN server and see about:webrtc for more details

Screenshot_20211103_181928

the client and the server are remote and connected through a VPN. Maybe that is the issue

chgans avatar Nov 03 '21 05:11 chgans

The problem is that the remote candidate is the internal docker IP address (eg 10.x.y.z) instead of the machine's IP. I tried to setup a TURN server as per https://source.android.com/devices/automotive/start/avd/cloud_emulator#troubleshooting, but the web page is still trying to connect to the docker IP address, not the server public address

chgans avatar Nov 16 '21 03:11 chgans

After fixing a typo, it is now working using coturn! :)

chgans avatar Nov 16 '21 03:11 chgans

@chgans Which typo , i may face the same issue here

Eslam-mohammed-anwar avatar May 28 '23 19:05 Eslam-mohammed-anwar

@chgans @Eslam-mohammed-anwar what typo was this? @pokowaka can you kindly help

ajaysagar99 avatar Jan 02 '24 07:01 ajaysagar99