Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--max-web-media-player-count

What does --max-web-media-player-count do?

Sets the maximum number of WebMediaPlayers allowed per frame.

Usage

CLILaunch Chrome with --max-web-media-player-count using CLI

chrome --max-web-media-player-count

PuppeteerLaunch Chrome with --max-web-media-player-count using Puppeteer

const browser = await puppeteer.launch({
  args: ['--max-web-media-player-count']
});

PlaywrightLaunch Chrome with --max-web-media-player-count using Playwright

const browser = await chromium.launch({
  args: ['--max-web-media-player-count']
});

SeleniumLaunch Chrome with --max-web-media-player-count using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--max-web-media-player-count')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK