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 ↩︎