Skip to content
Media CloudDocs
Happy HolidaysSave 20% with codeValid through December 31Shop the sale
Setting Up Bunny Stream
On this page

Setting Up Bunny Stream

Connect Media Cloud to Bunny Stream with a library ID, API key, CDN hostname and webhook for encoding events.

3 min read·4 tags

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

  1. Open the Bunny Stream dashboard.
  2. Open the library you want to use.
  3. In the API section, copy the Library ID and API Key.
  4. Copy the CDN URL for the library. Include the scheme, for example https://vz-xxxxxxxx.b-cdn.net.

Step 2 – Configure Media Cloud

  1. Go to Media Cloud → Settings → Video Encoding.
  2. Set Video Encoding Provider to Bunny CDN Stream.
  3. Fill in the credentials:
FieldValue
Library IDBunny Stream library ID
API KeyBunny Stream library API key
CDN URLhttps://vz-xxxxxxxx.b-cdn.net
Web Hook URLThe URL shown by Media Cloud
  1. 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:// or http://.

Troubleshooting

ProblemLikely cause
401 from BunnyThe API key does not belong to the selected library.
Video stays in a processing stateThe webhook is missing or Bunny cannot reach it.
Playback URL returns 404The CDN URL is wrong or does not include the scheme.
Secure videos failToken authentication is enabled in Bunny but Secure Videos or the authentication key is missing in Media Cloud.
Embedded player does not appearUse 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.

Contact support
Start typing to search the docs

Escto close·⌘Kto open

View all results →