autoplay blocked JavaScript Origin: On your device Last updated 9 Oct 2026

NotAllowedError: play() failed because the user didn't interact with the document first.

The browser blocked media autoplay with sound until the user interacts with the page.

Exact message you may see play() failed because the user didn't interact with the document firstThe play() request was interrupted
Seen on: JavaScript

Meaning

Autoplay policies allow muted autoplay but require a user gesture for sound. video.play() returns a rejected promise.

Common causes

  • Calling play() with sound on page load
  • Audio started from a timer, not a click

⚡ Quick fix

  1. Start playback from a click/tap handler
  2. Autoplay muted (muted + playsinline) and offer an unmute button
  3. Catch the play() promise rejection

Detailed fix by platform

JavaScript

  1. javascript
    video.muted = true;
    video.play().catch(() => showPlayButton());

How to diagnose

  1. Trigger — Was play() called from a user gesture?
  2. Sound — Muted?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

auth/popup-closed-by-user — Firebase Auth: auth/popup-closed-by-user / auth/popup-blocked / auth/cancelled-popup-request (Authentication)auth/popup-closed-by-…ERR_ABORTED — net::ERR_ABORTED 404 (Not Found) (JavaScript)ERR_ABORTEDERR_BLOCKED_BY_CLIENT — net::ERR_BLOCKED_BY_CLIENT (JavaScript)ERR_BLOCKED_BY_CLIENTERR_CACHE_MISS — ERR_CACHE_MISS: Confirm Form Resubmission (Browser)ERR_CACHE_MISSERR_CERT_AUTHORITY_INVALID — NET::ERR_CERT_AUTHORITY_INVALID (Your connection is not private) (JavaScript)ERR_CERT_AUTHORITY_IN…ERR_CERT_DATE_INVALID — NET::ERR_CERT_DATE_INVALID (certificate expired) (JavaScript)ERR_CERT_DATE_INVALIDERR_CONNECTION_REFUSED — net::ERR_CONNECTION_REFUSED (This site can't be reached — refused to connect) (JavaScript)ERR_CONNECTION_REFUSEDERR_CONNECTION_RESET — ERR_CONNECTION_RESET: This site can’t be reached — The connection was reset (Browser)ERR_CONNECTION_RESETautoplay …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.