Allow users to copy links to specific times (marker aligned or to current time)
We already allow setting a timestamp in the url to make the player start at the provided time, but there's no way for users to generate those urls easily (at the moment the only place that generates them is the search).
We can provide two ways of generating the url:
- Add a little "Share at current time" button that would display a readonly
<input>
element with the url inside, already selected. (AFAIK, it's still impossible to push stuff to the clipboard using javascript alone) - Convert all the marker wrappers to
<a>
withhref="#xxxx"
. We'll need to prevent the default behavior in javascript to prevent it from actually doing anything. The idea is that users will be able to right click->copy link address and get the url with the marker's timestamp.
Special thanks to Croepha for the suggestion.