skip to content

Media

Makes an <audio> or <video> element an audio source and the beginning of a signal chain.

DRAFT! This element is in early development and is liable to change or possibly be replaced.

class
Media
extends
Base
tag
<media-blam>
see

Props

name type default description
element string

A CSS selector for an <audio> or <video> element. If not set, the element looks for an applicable descendant element.

out string

The id of the next element in the chain. If not set, it defaults to an ancestor <audio> or <video> element.

Events

type description
blamsource

Fired when the audio can be played through (proxying the canplaythrough event).

Examples

Examples that use the Media element: