Mx

Frontmatter Properties

Complete reference for all supported frontmatter properties to control media behavior in note metadata

You can control media behavior by adding properties to the YAML frontmatter of your media notes. These properties affect how media files are displayed and played when viewing or embedded in the note.

For example:

---
title: My Video Note
loop: true
muted: true
volume: 80
---

Basic Properties

PropertyDescriptionValuesExample
titleCustom title for the mediaText stringtitle: "My Custom Title"

Playback Control Properties

PropertyDescriptionValuesExample
loopLoop the mediatrue or falseloop: true
mutedStart in muted statetrue or falsemuted: true
auto_playStart playing automaticallytrue or falseauto_play: true
autoplayAlias for auto_playtrue or falseautoplay: true

Audio/Video Properties

PropertyDescriptionValuesExample
volumeSet default volume level0-100volume: 80
audio_gainAudio gain adjustmentNumberaudio_gain: 2.0
playback_rateSet default playback ratePositive numberplayback_rate: 1.5
speedAlias for playback_ratePositive numberspeed: 1.5

Display Properties

PropertyDescriptionValuesExample
aspect_ratioAspect ratioRatio formataspect_ratio: "16 / 9"
cross_originCross-origin policyCORS valuescross_origin: "anonymous"
flipFlip transformationFlip optionsflip: "horizontal"

Time Control Properties

PropertyDescriptionValuesExample
time_rangeTime segment to playTime range formattime_range: "10,20"

Time Range Format

The time_range property supports the same time formats as hash properties:

  • Seconds: 10 or 10.5
  • MM:SS: "02:30"
  • HH:MM:SS: "1:02:30"
  • Ranges: "10,20" (from 10s to 20s)
  • Open ranges: ",30" (beginning to 30s) or "10," (10s to end)

On this page