labrocadabro / communitytaught

MIT License
78 stars 31 forks source link

Chapters for videos #61

Open labrocadabro opened 7 months ago

labrocadabro commented 7 months ago

Would like to have a list of timestamp links on each video, linking to different sections/chapters of the video. Similar to Rascal Two's timestamps on Youtube.

nmpereira commented 7 months ago

Link to Rascal's work please?

labrocadabro commented 7 months ago

https://www.youtube.com/watch?v=qEj0pXGVwjY Second comment, by Rascal_Two. Although maybe not that exhaustive.

As you commented in #60, pretty sure we're talking about the same thing, I misread your post. In order to keep the discussion in one spot, I'm closing that one as a duplicate and we'll go from here.

The way I'm thinking of it, however, does not rely on #58. What I'm thinking of is a section on each video page that has a list of timestamp links that change the position of the video on the current page. Since the links are "internal", the implementation does not require timestamps in the query parameters of the page. Because I'm not using any CSR, that would force the page to reload.

labrocadabro commented 7 months ago

Argh closed the wrong one.

GarlandKey commented 4 months ago

So, do you envision a single text input that requires a specific pattern and then parses that data to create youtube timestamp links?

Input:

20:32 - Spicy rant
39:12 - Don't tell on yourself
45:16 - JavaScript review

Output:

<a href="https://youtu.be/ZpuueksLJK?si=VqD1RiZMxZAsfEBG&t=1232">20:32</a> - Spicy rant
<a href="https://youtu.be/ZpuueksLJK?si=VqD1RiZMxZAsfEBG&t=2352">39:12</a> - Don't tell on yourself
<a href="https://youtu.be/ZpuuIpsgaPQ?si=VqD1RiZMxZAsfEBG&t=2716">45:16</a> - JavaScript review