Ability To Pass Argument To Capture System Audio When Using Drivers?

485 views
Skip to first unread message

Nour Z

unread,
Sep 10, 2022, 8:17:37 AM9/10/22
to Chromium-discuss
TLDR: I want to suggest (or contribute if possible) the ability to share system/tab audio via a argument so I can automatically enable it when I run custom driver scripts like Selenium,  Puppeteer, or Playwright

Longer explanation:
Let us say I have a website like this: https://codepen.io/djwetsuwkjehs/pen/poVvWLW
[Source code attached as 'code.html' if you do not wish to click any links]

This is a code snippet that allows you to share your screen but it also has the "audio": true (line 94) which allows this option to appear
temp.png
temp.png

Currently, there is no way to automatically enable this option because there exist no flag to enable it , we only have these flags:
  • --auto-accept-this-tab-capture
  • --auto-select-desktop-capture-source
  • --auto-select-tab-capture-source-by-title
When these are passed, the prompts do not show up when using Chromedriver. Even if they did, you cannot programmatically select the "Share System audio" or "Share tab audio"

I am proposing for a feature like this to be made but I am wondering from the wider community whether this would be accepted or not.
code.html

Nour Z

unread,
Feb 18, 2023, 11:52:52 PM2/18/23
to Chromium-discuss, Nour Z

Ping?
Reply all
Reply to author
Forward
0 new messages