Connect Backblaze B2 storage
This article shows you how to create a Backblaze B2 bucket and connect it to PlayerMagick.
This is optional. PlayerMagick stores your videos for you, with nothing to set up. Connecting your own bucket is only for accounts where it is turned on: accounts that already used their own storage, and accounts where support turned it on at your request. See How PlayerMagick stores your videos.
Before you start
- You need a Backblaze account with B2 Cloud Storage. Backblaze may ask you to verify your email or add a payment method before a bucket can be public.
- About viewing costs: Backblaze lets you download a certain amount for free each month, and downloads through partner networks such as Cloudflare are free . For busy pages, consider putting Cloudflare in front of your bucket.
Backblaze sometimes renames buttons. If a label below does not match exactly, look for the closest one.
Step 1: Create a public bucket
- Log in to Backblaze and open Buckets.
- Click Create a Bucket.
- Enter a name, for example
acme-sales-videos. Names are shared by all Backblaze customers, so pick something unique. - Set Files in Bucket are to Public. Your visitors need to load the videos without logging in.
- Click Create a Bucket.
- On the bucket's card, find Endpoint. It looks like
s3.us-west-004.backblazeb2.com. The part betweens3.and.backblazeb2.com(hereus-west-004) is your region. Write it down.
Step 2: Create a key for PlayerMagick
- Open Application Keys.
- Click Add a New Application Key.
- Name it
PlayerMagick. - Under Allow access to Bucket(s), choose your bucket only.
- Under Type of Access, choose Read and Write.
- Click Create New Key.
- Copy keyID and applicationKey. Backblaze shows the applicationKey only once.
Do not use your Master Application Key: it can access everything in your account.
Step 3: Find your public address
Your Public URL for playback is:
https://YOUR-BUCKET.s3.YOUR-REGION.backblazeb2.com
For example https://acme-sales-videos.s3.us-west-004.backblazeb2.com. If you put Cloudflare or another network in front of the bucket, use that address instead.
Step 4: Connect the bucket in PlayerMagick
- Open the Storage step of the first setup, or go to Settings → Storage and click Connect a bucket.
- Choose Backblaze B2.
- Fill in:
- Region : for example
us-west-004. You can also paste the whole endpoint; PlayerMagick picks out the region. - Bucket name: from step 1.
- Access key ID: the keyID from step 2.
- Secret access key: the applicationKey from step 2.
- Public URL for playback: from step 3.
- Region : for example
- Click Test connection and wait for the four checks: "Wrote a test file", "Read it back through the public URL", "Deleted it", "Set up browser uploads (CORS) for you".
- Click Save and continue.
If the CORS check fails
PlayerMagick tries to set up CORS (the permission that lets the player load your videos from your sales page) for you. If it cannot, it shows the exact rules to add. After adding them, click Test again. See Fix a storage connection test error.
Troubleshooting
- "Read it back through the public URL" fails: check that the bucket is Public and that the address has your bucket name and region spelled exactly.
- The first check fails: check the region, and that the key was created for this bucket with Read and Write.
All messages: Fix a storage connection test error.