Skip to main content
  1. Snippits & Exemplars/
  2. WolfspyreLabs Exemplars/
  3. WolfspyreLabs Shortcodes/

Embedded Video

🐺 embed 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 #

๐ŸŽž๏ธ

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” ytVidID=“dYaX2xjB9y4” >}}

{{< embed-video name=“ytVidIDtest” techOrder=“youtube” showLink=true ytVidID=“dYaX2xjB9y4” >}}

{{< embed-video name=“yttest2” techOrder=“youtube” showLink=true vidFullURI=“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 Only #

{{< embed-video name=“NocSunPromo04.m4v” >}}

๐Ÿฟ๏ธ๐Ÿชค

{{< embed-video name=“NocSunPromo09.mp4” showLink=true >}}

๐Ÿฟ๏ธ๐Ÿชค

{{< embed-video name=“UDUMASS.m4v” path=“lulz/” showLink=true >}}

name and path #

{{< embed-video name=“Panda.mp4” path=“lulz/” >}}

“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

๐ŸŽฅ๐ŸŽฌ๐ŸŽช

{{< 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" >}}

๐Ÿ

  1. https://videojs.com ↩︎

  2. https://github.com/videojs/videojs-youtube#how-does-it-work> ↩︎

  3. https://gitlab.wolfspyre.io/wolfspyrelabs/skwirreltrap-asset ↩︎

  4. This defaults to vids/ ↩︎ ↩︎

  5. [embed-video.html:133] ↩︎

  6. This is set to https by default. If the shortcode is fed https=false it will be set to http ↩︎

  7. This defaults to assets.wolfspyre.io ↩︎