MEDIA_DEFAULT_VOLUME

const
Media

Default volume (0–1 range) for OrigamAudio and OrigamVideo. Value 1 means full volume, matching the browser native default. Materialised here so useMediaPlayer, OrigamAudio and OrigamVideo share a single source of truth instead of re-typing the literal.

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.

Initialising a custom player with the default volume

typescript