Lewiscowles1986 / LewisCowles1986.github.io

website
https://lewis.cowles.uk
GNU General Public License v2.0
1 stars 0 forks source link

YouTube & Media linking #2

Open Lewiscowles1986 opened 2 years ago

Lewiscowles1986 commented 2 years ago

While writing and iterating on GopherCon December 2021 blog post there was a new type of content, that I avoided in the Axe-con YouTube playlist.

I wanted to play with this concept but am aware it might not be ideal.

This is a placeholder for feedback on this specifically.

If you like a treatment (should be specified one-per treatment), 👍 if you don't 👎

Lewiscowles1986 commented 2 years ago

Treatment:

Input: [hh:mm:ss] - An attempt at describing a link

Output:

Web link to the specific Youtube, using &t=${hh}h${mm}m${ss}s inferring 0 (note single-digit) if a component is omitted.

Challenges. No clean way for markdown or non-manual HTML to denote a link between a parent video and this timestamp.

Lewiscowles1986 commented 2 years ago

Treatment:

Input: [hh:mm:ss] - An attempt at describing a link

Output: compounds with turning link into time-stamp specific

Specify shared frame target, so that clicking on any time-stamp, leads to the same tab being opened.

Lewiscowles1986 commented 2 years ago

Treatment:

Input: [hh:mm:ss] - An attempt at describing a link

Output: compounds with turning link into time-stamp specific

Use HTML time element, with literal copy as datetime attribute; to semantically specify the time, in addition to providing DOM node content.

Questions:

Lewiscowles1986 commented 2 years ago

Upsetting finding. Target is not respected when I click on a link in Google Chrome or Mozilla Firefox... 😡

Perhaps I inferred that because it should work with frames, it should work for tabs. As Both are browser contexts, this made sense. I'm very upset at that decision. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a Suggests it should work for tabs and windows. Maybe someone has some tips?

MDN note on anchor link targets

Lewiscowles1986 commented 2 years ago

Experimental treatment tried and rolled back was to embed a media player on page using the no-cookies version of YouTube, with autoplay and clipboard-read-write permissions removed.

It required an iteration on the link I'd not appreciated to use just seconds as a start. I don't like this and because it would need a start and end time; I felt it was incompatible with the initial experiments I am running on the embedded media format. I Also would long-term like to have this media addressing more standardised and so linking to iframe players was always going to be non-ideal.