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” showLink=true ytVidID=“dYaX2xjB9y4” >}}
(VideoURL:https://www.youtube.com/watch?v=dYaX2xjB9y4)
vidFullURI
embed endpoint (with displayed link) Example #
{{< embed-video name=“ytembeduri” 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=“yttest2” techOrder=“youtube” 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 vidURI
5 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:
https
6://host
7/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
https
by default. If the shortcode is fedhttps=false
it will be set tohttp
↩︎ -
This defaults to
assets.wolfspyre.io
↩︎