diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2020-12-28 19:29:35 -0600 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2020-12-28 19:29:35 -0600 |
commit | 9be9a10f2622086bf086af0ce82a0febed155c7a (patch) | |
tree | 1730017196b804a349a98cfb445196528525fbba | |
parent | 52032577ec56c7592750f3c744a5a9880444026b (diff) | |
download | emacsconf-wiki-9be9a10f2622086bf086af0ce82a0febed155c7a.tar.xz emacsconf-wiki-9be9a10f2622086bf086af0ce82a0febed155c7a.zip |
Add: initial test of jump to timestamp for talk videos
- add vidid to the vid template in order to set an id attribute on
the video element
- add onload event to set main video variable
- add test of setting the time in one talk transcript link
-rw-r--r-- | 2020/info/05.md | 5 | ||||
-rw-r--r-- | templates/vid.md | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/2020/info/05.md b/2020/info/05.md index 69af293e..ad57c007 100644 --- a/2020/info/05.md +++ b/2020/info/05.md @@ -1,7 +1,7 @@ # Bard Bivou(m)acs - Building a bandcamp-like page for an album of music Grant Shangreaux -[[!template id=vid src="https://mirror.csclub.uwaterloo.ca/emacsconf/2020/emacsconf-2020--05-bard-bivoumacs-building-a-bandcamp-like-page-for-an-album-of-music--grant-shangreaux.webm" subtitles="/2020/subtitles/emacsconf-2020--05-bard-bivoumacs-building-a-bandcamp-like-page-for-an-album-of-music--grant-shangreaux.vtt"]] +[[!template id=vid vidid="mainVideo" src="https://mirror.csclub.uwaterloo.ca/emacsconf/2020/emacsconf-2020--05-bard-bivoumacs-building-a-bandcamp-like-page-for-an-album-of-music--grant-shangreaux.webm" subtitles="/2020/subtitles/emacsconf-2020--05-bard-bivoumacs-building-a-bandcamp-like-page-for-an-album-of-music--grant-shangreaux.vtt"]] [Download compressed .webm video (20.3M)](https://mirror.csclub.uwaterloo.ca/emacsconf/2020/smaller/emacsconf-2020--05-bard-bivoumacs-building-a-bandcamp-like-page-for-an-album-of-music--grant-shangreaux--vp9-q56-video-original-audio.webm) [View transcript](#transcript) @@ -118,7 +118,8 @@ with Unabridged Software in Lincoln, Nebraska. Long time Emacs user, relatively new Emacs hacker. Hopefully, I'll be able to show you my workflow, with how I publish music with Emacs. All right. -(00:30) So as a musician, I would like to publish my music online. I could +<a onclick="mainVideo.currentTime = 30.0">(00:30)</a> +So as a musician, I would like to publish my music online. I could publish with popular online music services, but I'm more of a DIY-type, so I chose to go ahead and publish with Emacs. What's the motivation behind this? A lot of it comes down to some fundamental diff --git a/templates/vid.md b/templates/vid.md index 803e0fb6..37af8bf5 100644 --- a/templates/vid.md +++ b/templates/vid.md @@ -1,5 +1,5 @@ <div class="vid"> -<video controls preload="metadata"> +<video controls preload="metadata" id="<TMPL_VAR vidid>" onload="var mainVideo = document.getElementById(<TMPL_VAR vidid>)"> <source src="<TMPL_VAR src>" type="<TMPL_VAR type>" /> <TMPL_IF subtitles> <track label="English" kind="subtitles" srclang="en" src="<TMPL_VAR subtitles>" default /> |