Setting Up Bunny Stream
Connect Media Cloud to Bunny Stream with a library ID, API key, CDN hostname and webhook for encoding events.
Bunny Stream is Bunny CDN’s video encoding and delivery service. Media Cloud imports uploaded videos into a Stream library, receives encoding events through a webhook, and plays the HLS renditions with the Media Cloud player.
Bunny Stream support is labeled Beta in Media Cloud.
Before you start
You need:
- A Bunny CDN account with Stream enabled.
- A Stream library.
- The library’s API key and CDN hostname.
- A publicly reachable site, or a tunnel such as ngrok, for the webhook.
Step 1 – Find the library credentials
- Open the Bunny Stream dashboard.
- Open the library you want to use.
- In the API section, copy the Library ID and API Key.
- Copy the CDN URL for the library. Include the scheme, for example
https://vz-xxxxxxxx.b-cdn.net.
Step 2 – Configure Media Cloud
- Go to Media Cloud → Settings → Video Encoding.
- Set Video Encoding Provider to Bunny CDN Stream.
- Fill in the credentials:
| Field | Value |
|---|---|
| Library ID | Bunny Stream library ID |
| API Key | Bunny Stream library API key |
| CDN URL | https://vz-xxxxxxxx.b-cdn.net |
| Web Hook URL | The URL shown by Media Cloud |
- Save the settings.
Step 3 – Add the webhook in Bunny Stream
Bunny Stream does not register the webhook for you. Copy the Web Hook URL shown in Media Cloud and add it to the library’s webhook settings in the Bunny dashboard.
The URL is based on your site address and ends with:
/__bunnycdn/webhook/
Bunny must be able to reach it. For local development, expose the site with ngrok and use the tunnel URL as the site URL while testing.
Step 4 – Upload a video
Upload a video through the WordPress media library. Media Cloud sends the video to Bunny Stream and waits for the encoding webhook. When encoding finishes, Media Cloud stores the video ID and playback metadata and downloads the poster image.
If Cloud Storage is enabled, Media Cloud gives Bunny a short-lived pre-signed URL for the source file. If Cloud Storage is not enabled, the WordPress attachment URL must be publicly accessible.
Playback
Bunny Stream videos play as HLS from the library’s CDN hostname. Use the Media Cloud video player block or shortcode. See Player Blocks and Player Settings.
Pro features
The Pro version adds:
- Secure Videos for libraries with CDN token authentication enabled.
- Token Authentication Key from the library’s Security settings.
- Secure Video Expiration for signed URLs.
- Exclude private videos from WP-REST.
- Use Bunny’s Embed Player to replace the Media Cloud player with Bunny’s iframe player.
Security, player, and embedded-player options are hidden in the free version.
Limitations
- Bunny Stream support is beta.
- Encoding settings and watermark settings are not available for this provider.
- The webhook must be added manually in Bunny’s dashboard.
- The CDN URL must include
https://orhttp://.
Troubleshooting
| Problem | Likely cause |
|---|---|
| 401 from Bunny | The API key does not belong to the selected library. |
| Video stays in a processing state | The webhook is missing or Bunny cannot reach it. |
| Playback URL returns 404 | The CDN URL is wrong or does not include the scheme. |
| Secure videos fail | Token authentication is enabled in Bunny but Secure Videos or the authentication key is missing in Media Cloud. |
| Embedded player does not appear | Use Bunny’s Embed Player is off, or the Video Player tool is disabled. |
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.