MEDIA_DEFAULT_PRELOAD

const
Media

Default preload hint forwarded to the native <audio>/<video> element. The value 'metadata' loads only enough data to compute the duration, avoiding auto-buffering and reducing bandwidth on initial render.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamAudio

  • OrigamVideo

Usage

Examples

Ready-to-paste code snippets using this constant.

Overriding the default preload hint

typescript