Add a timestamp shortcode #89362

Open
opened 2021-06-22 14:58:05 +02:00 by Mike Newbon · 3 comments

To add support for video-timestamp links (similar to YouTube, clicking a linked timestamp will skip the video to the timestamp) we need a way for artists to create these links.

After discussion with @railla we decided the best way to do this on a markdown level is with a new shortcode. Suggested format is as follows:

{timestamp text="rendered text" time="92"}

Which would then render as something like:

01:32

Which I can then write a JS function for.

To add support for video-timestamp links (similar to YouTube, clicking a linked timestamp will skip the video to the timestamp) we need a way for artists to create these links. After discussion with @railla we decided the best way to do this on a markdown level is with a new shortcode. Suggested format is as follows: {timestamp text="rendered text" time="92"} Which would then render as something like: <a href="#time=92" dataTimestamp="92" class="timestamp">01:32</a> Which I can then write a JS function for.
Anna Sirota was assigned by Mike Newbon 2021-06-22 14:58:05 +02:00
Author

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author

Added subscribers: @railla, @MikeyN

Added subscribers: @railla, @MikeyN
Author

This solution won't work in flat pages and blogs where multiple videos are displayed, but inside of an asset modal and on training it should work fine.

This solution won't work in flat pages and blogs where multiple videos are displayed, but inside of an asset modal and on training it should work fine.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio#89362
No description provided.