Skip to content

Getting Started

Setup takes about ten minutes. You collect four values from bunny.net, enter them once, and the plugin checks the connection.

In your bunny.net dashboard, open Stream and select your library.

  1. API tab: note the Library ID, the API Key and the CDN Hostname (it looks like vz-xxxx.b-cdn.net).
  2. Security tab: switch on Token Authentication and note the Token Authentication Key.
  3. Optional but recommended: in your library’s security settings, restrict playback to your community domain and block direct file access. The plugin works with these settings. The option names can differ slightly in the bunny.net dashboard.

Upload the plugin zip under Plugins → Add New → Upload Plugin, then activate it.

Open Media → Bunny Stream → Settings.

Field Where to find it
Library ID Stream → your library → API
Library API key Stream → your library → API. Only used to list videos
Token authentication key Stream → your library → Security
CDN hostname (optional) Stream → your library → API. Enables thumbnails

Save. A banner confirms the connection and shows how many videos it found. The two keys are stored encrypted and are never shown again. Leave a key field blank to keep the saved value.

The plugin can only prove the Library ID and API key when you save. The token key is checked the first time a video plays.

If you would rather keep the values out of the database, define them in wp-config.php, above the line that says “That’s all, stop editing!”:

define('LBC_BUNNY_LIBRARY_ID', '12345');
define('LBC_BUNNY_API_KEY', '...');
define('LBC_BUNNY_TOKEN_KEY', '...');
define('LBC_BUNNY_CDN_HOST', 'vz-xxxx.b-cdn.net'); // optional

A value in wp-config.php always wins over the settings page. The page shows which fields are set that way.

Continue with Using it in lessons.