Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

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.

View as Markdown
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 | undefined

Parameters

NameTypeDescription
mediaHTMLMediaElement

Also exported from @dioramajs/audio/graph.

Defined in packages/audio/src/graph.ts.