Record the exact playback position of the latest audio or video embed directly into your note. Makes timestamps clickable to seek and start playing.
- Command palette entry with default
Ctrl+Shift+T(orCtrl+Alt+M) hotkeys. - Finds the most recent media embed above the cursor in live preview or reading mode, with clickable timestamps in both.
- Inserts the current playback time using
hh:mm:ss/mm:ssformatting, orstart-endranges. - Clicking a timestamp seeks instantly; double-clicking plays and auto-stops at the range end (if present).
- Transport controls:
Ctrl+Alt+,/Ctrl+Alt+.seek ±0.25 seconds (holdShiftfor ±2.5 seconds),Ctrl+Alt+Spacetoggles playback without pop-up messages. - Optional debug info is written to the note and
/tmp/obsidian-media-timestamp.logwhen matching fails (turn on with Enable media timecodes debug logging, turn off with Disable media timecodes debug logging commands).
- Place the cursor where you want the timestamp.
- Trigger Insert timestamp from last media above cursor (use
Ctrl+Shift+TorCtrl+Alt+M). - The plugin grabs the playback time from the last embed above the cursor and inserts it at the cursor position.
- Double-click a timestamp to start playback (auto-stop at the second timecode when a range is present).
- On failure, a quoted debug block is added so you can inspect which step failed.
- Enable logging via the command palette by running Enable media timecodes debug logging; a notice confirms the state.
- Logs are appended to
/tmp/obsidian-media-timestamp.log(handy for attaching to bug reports) while logging is enabled. - Disable logging via Disable media timecodes debug logging when you are finished collecting diagnostics.
npm install
npm run devTo produce a release build, run:
npm run build