check function
Whether the element's sound survives the graph.
import { check } from '@dioramajs/diorama/audio/graph'A URL of the page's origin is asked for once: in same-origin mode any redirect to another origin fails, just as it taints the element's own request. A server without HEAD gets a GET for the first byte.
function check(media: HTMLMediaElement): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
media | HTMLMediaElement |
Also exported from @dioramajs/audio/graph.
Defined in packages/audio/src/graph.ts.