Getting Started
Setup takes about ten minutes. You collect four values from bunny.net, enter them once, and the plugin checks the connection.
1. Prepare bunny.net
Section titled “1. Prepare bunny.net”In your bunny.net dashboard, open Stream and select your library.
- API tab: note the Library ID, the API Key and the CDN Hostname (it looks like
vz-xxxx.b-cdn.net). - Security tab: switch on Token Authentication and note the Token Authentication Key.
- 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.
2. Install the plugin
Section titled “2. Install the plugin”Upload the plugin zip under Plugins → Add New → Upload Plugin, then activate it.
3. Enter the settings
Section titled “3. Enter the settings”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.
Using wp-config.php instead
Section titled “Using wp-config.php instead”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'); // optionalA value in wp-config.php always wins over the settings page. The page shows which fields are set that way.
4. Add a video to a lesson
Section titled “4. Add a video to a lesson”Continue with Using it in lessons.