Can we make WebRTC call with headless chrome ??

2,314 views
Skip to first unread message

Kishor Kulkarni

unread,
Jul 15, 2019, 3:38:50 AM7/15/19
to Chromium-dev
Hi , 

I am using the puppeteer to automate the testing. 

I tried to use the headless chrome to make WebRTC call , but browser is not able to access the microphone and camera. 

With same automation framework , if i use the non-headless chrome it works fine. 

I am curious to know , whether we support the WebRTC with headless chrome????? 

Regards, 
Kishor 

Mohamed Mansour

unread,
Jul 15, 2019, 5:04:41 PM7/15/19
to Chromium-dev
You can bypass the user interaction prompt by passing: --use-fake-ui-for-media-stream

   "Bypass the media stream infobar by selecting the default device for media streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream."

Just add that to your puppeteer launch args.

Neil Young

unread,
May 12, 2020, 7:46:30 PM5/12/20
to Chromium-dev
That is somehow not sufficient to access a CSI cam. Might work with a USB cam, not tested
Reply all
Reply to author
Forward
0 new messages