website icon indicating copy to clipboard operation
website copied to clipboard

feat: Convert show notes timestamps to audio player time links

Open reobin opened this issue 5 years ago • 1 comments

Context

Bumped a couple of times in a situation where having the timestamps clickable would be really useful, so I decided to have a go at it.

What is done

All show notes word matching the format 1:00 or 01:00 are replaced by buttons. A timestamp button, when clicked, sends its timestamp in seconds to the Player component, which will update the current time on the audio player.

What it looks like

timestamps

reobin avatar Jul 10 '20 22:07 reobin

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/wesbos/syntax/5sl2a0f7d ✅ Preview: https://syntax-git-fork-reobin-feat-timestamp-links.wesbos.vercel.app

vercel[bot] avatar Jul 10 '20 22:07 vercel[bot]