Skip to main content
cngx-src documentation

CngxAutoplayGate

Interface

projects/common/audio/autoplay-gate/autoplay-gate.ts

Import#

import { CngxAutoplayGate } from '@cngx/common/audio'

Description#

Public handle returned by createAutoplayGate.

Index#

Properties

Methods

Instance Properties#

armed#Signal
Readonly

true once a user gesture (or an explicit arm) has satisfied the browser autoplay policy. Derived from a single gesture event — never synced from multiple handlers.

Methods#

Arm the gate programmatically (e.g. after an existing trusted gesture).