Chrome Flags Reference

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

--force-video-overlays

What does --force-video-overlays do?

Force media player using SurfaceView instead of SurfaceTexture on Android. Note: This is used by the Cast playback pipeline and must be kept.

Usage

CLILaunch Chrome with --force-video-overlays using CLI

chrome --force-video-overlays

PuppeteerLaunch Chrome with --force-video-overlays using Puppeteer

const browser = await puppeteer.launch({
  args: ['--force-video-overlays']
});

PlaywrightLaunch Chrome with --force-video-overlays using Playwright

const browser = await chromium.launch({
  args: ['--force-video-overlays']
});

SeleniumLaunch Chrome with --force-video-overlays using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--force-video-overlays')

driver = webdriver.Chrome(options=options)