jekyll-bunny
bunny.net, the global edge platform that truly hops. jekyll-bunny lets you embed a Bunny Stream video in Jekyll with one tag.
Open Source Plugin ∙

jekyll-bunny

A Jekyll plugin that adds a {% bunny %} Liquid tag for embedding Bunny Stream videos in a responsive iframe.

jekyll-bunny is a Jekyll plugin that lets you embed a video hosted on Bunny Stream with one tag. It outputs a clean, responsive iframe wrapper that uses the official Bunny Stream embed URL.

Demo

{% bunny 51808 3f2bd49c-0496-4fc4-ad42-026f09d474ea autoplay=false loop=false showSpeed=true chromecast=true %}

Why This Exists

Bunny Stream is fast, affordable video hosting with a solid embedded player. If you already use Bunny for CDN or storage and want an easy way to put Bunny Stream videos on a Jekyll site, this plugin builds the iframe and handles all the embed parameters for you.

Source Code

Installation

Add to your Gemfile:

gem "jekyll-bunny", "~> 0.1"

Add to _config.yml:

plugins:
  - jekyll-bunny

Then run bundle install.

Usage

The tag needs both your Library ID and your Video ID:

Basic embed:

{% bunny LIBRARY_ID VIDEO_ID %}

With parameters:

{% bunny LIBRARY_ID VIDEO_ID autoplay=false loop=true showSpeed=true %}
{% bunny LIBRARY_ID VIDEO_ID t=30s muted=true %}

You’ll find both IDs in your Bunny Stream dashboard. The library ID is the number in the embed URL, and the video ID is the UUID.

Supported Parameters

Parameter Values Description
autoplay true, false Autoplay on load
loop true, false Loop playback
muted true, false Start muted
preload true, false Preload video files
playsinline true, false Inline playback on mobile
t 30s, 1h20m45s, seconds Start position
captions caption short-code Default caption language
chromecast true, false Enable Chromecast
disableAirplay true, false Disable AirPlay
showHeatmap true, false Show engagement heatmap
showSpeed true, false Show playback speed control
rememberPosition true, false Remember last playback position
compactControls true, false Compact player UI

Styling

The plugin wraps the player in a div with the class bunny-embed and doesn’t add any spacing. Add your own in your site CSS:

.bunny-embed {
  margin-bottom: 2rem;
}