Embedded Video
FUCK youtube. Host it yerself!
embed-video launches a video-js1 instance within a content page.
There’s a handful of parameters that can be fed to the shortcode.
Full parameter list #
Usage #
Youtube Related Content #
With the aid of VideoJS-Youtube
There are two ways to use embed-video to display youtube videos.
embed-video YoutubeStyle ποΈ Examples: #
ytVidID Only #
{{< embed-video name=“ytVidIDtest” techOrder=“youtube” useDataSetup=true ytVidID=“dYaX2xjB9y4” >}}
ytVidID Only - show video link #
{{< embed-video name=“ytVidIDwLink” techOrder=“youtube” useDataSetup=true showLink=true ytVidID=“dYaX2xjB9y4” >}}
(VideoURL:https://www.youtube.com/watch?v=dYaX2xjB9y4)
vidFullURI embed endpoint (with displayed link) Example #
{{< embed-video name=“ytEmbedWLink” techOrder=“youtube” showLink=true useDataSetup=true vidFullURI=“http://www.youtube.com/embed/dYaX2xjB9y4" >}}
(VideoURL:http://www.youtube.com/embed/dYaX2xjB9y4)
vidFullURI Example #
{{< embed-video name=“ytfullURI” techOrder=“youtube” useDataSetup=true vidFullURI=“https://www.youtube.com/watch?v=dYaX2xjB9y4" >}}
NOTE: I’ve not figured out how to get rid of the poster image bullshit here. todo later. have wasted too much time on this for the moment
Skwirreltrap-Hosted Content #
embed-video SkwirreltrapStyle πΏοΈπͺ€ Examples: #
name and path - show video link #
{{< embed-video name=“UDUMASS.m4v” path=“lulz/” showLink=true >}}
(VideoURL:https://assets.wolfspyre.io/lulz/UDUMASS.m4v)
“External” Content #
There are two ways to use the embed-video shortcode with external video assets.
The most straightforward is to just declare the name and use vidFullURI to define the entire URI:
OR, if you want to, you can declare the different parts of vidURI5 resource fed to the videojs player as a $.Scratch variable:
The parameters’ default values work for video content stored in Skwirreltrap’s assets.wolfspyre.io staticsite.
Here’s a breakdown:
https6://host7/path/4name
name and vidFullURI - show video link #
{{< embed-video name=“PandaLink” showLink=true vidFullURI=“https://wplimgs.dog.wolfspyre.io/PandaCheese.mp4" >}}
name and vidFullURI #
{{< embed-video name=“PandaCheese” vidFullURI=“https://wplimgs.dog.wolfspyre.io/PandaCheese.mp4" >}}
-
https://github.com/videojs/videojs-youtube#how-does-it-work> ↩︎
-
https://gitlab.wolfspyre.io/wolfspyrelabs/skwirreltrap-asset ↩︎
-
[embed-video.html:133] ↩︎
-
This is set to
httpsby default. If the shortcode is fedhttps=falseit will be set tohttp↩︎ -
This defaults to
assets.wolfspyre.io↩︎