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
---
Property Description Values Example titleCustom title for the media Text string title: "My Custom Title"
Property Description Values Example loopLoop the media true or falseloop: truemutedStart in muted state true or falsemuted: trueauto_playStart playing automatically true or falseauto_play: trueautoplayAlias for auto_play true or falseautoplay: true
Property Description Values Example volumeSet default volume level 0-100 volume: 80audio_gainAudio gain adjustment Number audio_gain: 2.0playback_rateSet default playback rate Positive number playback_rate: 1.5speedAlias for playback_rate Positive number speed: 1.5preserve_pitchPreserve audio pitch when changing speed true or falsepreserve_pitch: true
Property Description Values Example aspect_ratioAspect ratio Ratio format aspect_ratio: "16 / 9"cross_originCross-origin policy CORS values cross_origin: "anonymous"flipFlip transformation Flip options flip: "horizontal"
Property Description Values Example time_rangeTime segment to play Time range format time_range: "10,20"
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)