local function
Whether Web Audio can read the element without muting it, as far as the page can tell without a request: true, false, or undefined for a URL of the page's own origin, which a redirect may take elsewhere, and for an element without a source yet.
import { local } from '@dioramajs/diorama/audio/graph'.
A request without CORS (no crossorigin) to another origin is opaque, and a media element source of an opaque response outputs silence. With crossorigin the browser itself refuses a source its server does not allow, so the graph changes nothing.
function local(media: HTMLMediaElement): boolean | undefinedParameters
| Name | Type | Description |
|---|---|---|
media | HTMLMediaElement |
Also exported from @dioramajs/audio/graph.
Defined in packages/audio/src/graph.ts.