How to Connect BunnyCDN Stream
Learning how to connect Bunny Stream to WP Media Player allows you to deliver high-performance video streaming across a worldwide network without straining your WordPress hosting resources. Bunny Stream combines cloud storage, automated multi-bitrate encoding, and low-latency CDN delivery into an all-in-one media infrastructure.
With WP Media Player, your video files are encoded into adaptive HLS formats and distributed across global Edge points of presence. This setup eliminates buffering, reduces bandwidth consumption, and guarantees responsive playback across desktop and mobile devices.
In this step-by-step tutorial, you will learn how to:
- Create and configure an automated video library in Bunny Stream
- Secure your REST API credentials from your Bunny account dashboard
- Link Bunny Stream in WP Media Player storage settings
- Select, customize, and embed streaming video players with shortcodes
When to Use Bunny Stream for Video Hosting
Choose Bunny Stream whenever you require hands-off video processing. The service automatically transcodes your source uploads into multiple resolution qualities (such as 1080p, 720p, 480p, and 360p), creating adaptive HLS manifests on the fly.
If you already have ready-to-play files and only need simple file hosting with CDN delivery, use BunnyCDN Storage instead. BunnyCDN Storage provides standard static storage, while Bunny Stream delivers full transcoding pipelines.

Step 1: Create a Video Library in Bunny
Before you connect Bunny Stream to WordPress, you must set up a dedicated video library inside your Bunny dashboard to house and encode your files.
- Log in to your Bunny account and click Stream from the navigation sidebar.
- Click the Add Video Library button in the top right corner.
- Enter a recognizable, unique name for your video library (for example,
Corporate-Course-Videos). - Under GEO Replication, check the continental zones closest to your primary target audience (Europe, North America, Asia, etc.). Replicating files ensures instantaneous Time-to-First-Byte (TTFB).
- Click Add Video Library to confirm.
- Open your new library and upload your source video files. Bunny immediately starts background transcoding for each file.
Step 2: Get Your Bunny Account API Key
WP Media Player requires your account-level API key to authenticate REST queries and list available videos inside your WordPress admin dashboard.
- In your Bunny account, open Account Settings.
- Select API Key from the sidebar options.
- Click the copy icon to copy your primary account API key to your clipboard.
- In your WordPress dashboard, navigate to WP Media Player > Settings > Storage.
- Locate the BunnyCDN Stream card and click Configure (or turn on its enable toggle).
- Paste your copied API Key into the dedicated input field.
- Click the Test Connection button. The system verifies API authentication against Bunny’s servers and displays a green confirmation prompt.
- Click Save Changes to store your configuration.
Your credentials are stored in your WordPress database and are only used to communicate with Bunny. They are never sent to CodeConfig or any third party.
Step 3: Add and Configure a Video from Bunny Stream
With the integration established, publishing videos from your Bunny account takes just seconds:
- Go to WP Media Player > Media > Add New (or Add Media).
- In the source picker, select Bunny Stream (or BunnyCDN Streaming). It appears as a card alongside Media Library, YouTube, and Vimeo.
- Browse your hosted videos and pick the one you want. The video title, duration, and default thumbnail load automatically.
- Customize player parameters, including aspect ratio (16:9, 4:3, or custom), autoplay, loop, mute, and speed controls.
- Click Save Changes.
- Copy the shortcode from the field at the bottom of the editor. It looks like this:
[wp-media-player id="123"] - Paste the shortcode into any post, page, or block editor container. Your viewers watch the video streamed from Bunny’s CDN inside your chosen player skin.
Checklist: Make Sure Everything Works
- The BunnyCDN Stream card shows a connected status after you enter your API key.
- Bunny Stream appears in the source picker next to Media Library and your other sources.
- A video picked from your Bunny library loads with the correct title and thumbnail.
- Playback works on the frontend and streams smoothly from the CDN.
Troubleshooting Bunny Stream Connections
If you encounter unexpected playback or connection issues, review these verified solutions:
- Invalid API Key Error: Ensure you copied the Account API Key from Account Settings, rather than a specific Storage Zone password.
- Video Still Processing: Large 4K or multi-hour videos take several minutes to transcode. Check your Bunny Stream dashboard to confirm the status displays “Finished”.
- CORS or Domain Restrictions: If you configured allowed referrers inside Bunny Stream security settings, confirm your WordPress site domain is added to the whitelist.
Next Steps
- Host ready-to-play files with How to Connect BunnyCDN Storage.
- Add a navigable timeline to your video with How to Add Chapters to a Video.
Conclusion
Setting up your site to connect Bunny Stream with WP Media Player gives your visitors an exceptional, buffer-free viewing experience while saving substantial hosting bandwidth. Follow these steps whenever you add new content libraries to keep your streaming infrastructure running smoothly.