PlayerStream
EN
Ko-fi

Guides / Player Stream Server / S3 storage

Your own server

S3 storage.

A “bucket” (a kind of big folder in the cloud) on Backblaze B2, Wasabi, Cloudflare R2 or another S3-compatible service, as a library on your Server. For those who already use one: with keys that can only read.

Your files, your responsibility. The Server serves what you put in it: your videos, public domain ones or ones you have the right to use, and only to the people you give access to.

01

Before you start.

You need the full Server, activated with a PlayerStream account with Premium or Ultimate (in its dashboard, under “Your PlayerStream account”). With Premium, one library per service; with Ultimate, up to five. See Pricing.

  • Your account with the provider and a bucket with your videos (if you don't have one yet, each chapter says how to create it).
  • Read-only keys for that bucket: the Server will be able to list and read, never change or delete. Here's how to get them from each provider.
  • Some providers count requests: that's why the Server only checks for changes every 15 minutes.
02

Create the library.

  1. In the Server's dashboard, click “Add” (the last tab at the top) and choose the “S3 storage” card.
  2. Type the name it'll have in the app (for example, “Home movies”) and click “Save and continue →”.
  3. In the “Connect the bucket” step, choose your provider at the top: “Backblaze B2”, “Wasabi”, “Cloudflare R2” or “Other S3-compatible”. Each one shows its own steps and fields.
  4. Fill in the fields with what you get from your provider (chapters below) and click “Check”. If the keys can read the bucket, you'll see “Checked: those keys can read the bucket.”.

The secret key is stored encrypted on your Server and isn't shown again.

03

Backblaze B2.

  1. In the Server, click “Open Backblaze” and sign in with your Backblaze account.
  2. In the menu, B2 Cloud Storage → Buckets. If you don't have a bucket yet: “Create a Bucket”, a name, “Private” and “Create a Bucket”.
  3. On your bucket's card you'll see “Endpoint” (like s3.us-west-004.backblazeb2.com). Copy it into the Server's “Bucket endpoint” field, and the bucket's name into “Bucket name”.
  4. In the menu, “Application Keys” → “Add a New Application Key”: enter a name (for example playerstream), in “Allow Access to Bucket(s)” choose your bucket, as the type of access choose “Read Only” and click “Create New Key”.
  5. Copy the “keyID” and the “applicationKey” (this one is only shown once) into the Server's “keyID” and “applicationKey” fields. Click “Check”.
04

Wasabi.

  1. In the Server, click “Open Wasabi” and sign in with your account (the main one or an admin user).
  2. Your bucket is in “Buckets” (if you don't have one yet: “Create Bucket”, a name and a region). Note down its name and its region.
  3. In the Server, choose that region in “Bucket region” and type the name in “Bucket name”. The policy in the Server's steps fills in on its own with that name.
  4. In Wasabi, “Policies” → “Create Policy”: as the name, playerstream-solo-lectura; in the editor, paste the policy (in the Server, “Copy the policy”) and click “Create Policy”.
  5. “Users” → “Create User”: a name (for example playerstream), tick “Programmatic” access and click “Next”. No group, “Next”. In the policies, add playerstream-solo-lectura and “Next”. At the end, “Create User”.
  6. Wasabi shows you the “Access Key” and the “Secret Key” (the secret one, only once: if you like, download the CSV). Paste them into the fields with the same name and click “Check”.

The policy only allows listing and reading that bucket. This is it (with your bucket's name instead of NOMBRE-DEL-BUCKET):

read-only policy
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:ListBucket", "s3:GetBucketLocation"],
      "Resource": "arn:aws:s3:::NOMBRE-DEL-BUCKET"
    },
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::NOMBRE-DEL-BUCKET/*"
    }
  ]
}
05

Cloudflare R2.

  1. In the Server, click “Open Cloudflare R2” and sign in with your Cloudflare account. It opens in “R2 Object Storage” (in the menu it may be inside “Storage & databases”). The first time, Cloudflare asks you to activate R2: it's free up to a monthly limit, but it asks for a payment method.
  2. Your bucket is there (if you don't have one yet: “Create bucket”). In “Account Details”, copy the “Account ID” into the Server's “Account ID” field, and the bucket's name into “Bucket name”.
  3. Next to “API Tokens”, click “Manage” → “Create Account API token”. In “Permissions” choose “Object Read only”, limit it to your bucket (only the buckets you choose) and click the button to create the token.
  4. Copy the “Access Key ID” and the “Secret Access Key” (this one is only shown once) into the fields with the same name and click “Check”.

Is your bucket in the EU jurisdiction? Instead of the Account ID, paste your bucket's full “S3 API” address (the one ending in .eu.r2.cloudflarestorage.com): the field accepts it too.

06

Other S3-compatible.

For MinIO, Scaleway, IDrive e2, Storj, Amazon S3 and others, in the “Other S3-compatible” tab:

  1. In your provider's dashboard, find the S3 API endpoint (an https:// address) and your bucket's region. If it doesn't mention any region, leave us-east-1.
  2. Create read-only keys for that bucket: with permission to list and read (s3:ListBucket and s3:GetObject).
  3. In the Server, fill in “Endpoint (S3 API address)”, “Region”, “Bucket name”, “Access key” and “Secret key”, and click “Check”.

Only https:// addresses. An http:// one only works for a server on your own home network (the key would travel unencrypted over your network).

07

After connecting.

  1. “TMDB key”: paste your key and click “Check”; or, if you already have it in the app, enter your PlayerStream username and password and click “Use the one in my account”. It's free and required: the title pages come from there. Then click “Next →”.
  2. “Folders”: click “+ Add folder”, choose “Movies” or “Series”, go into the folder and click “Choose this folder”. Repeat with each folder.
  3. “Scan”: click “Scan”. Whatever it doesn't recognize, you fix later in “Review”.
  4. In “Access passes”, create one per person and give them their code: it's pasted into the app, in Settings → Content → Addons. It's explained step by step in the Server guide.

A bucket's “folders” are the beginning of each file's name (like Media/Cine/): the folder browser shows them just like folders. With S3 you can also give “Full access (direct from the cloud)”: the video comes straight from the bucket, with a link that expires in a few hours. Only use it on your own accounts.

08

If something goes wrong.

  • “That doesn't look like the Backblaze ‘Endpoint’”: it's like s3.us-west-004.backblazeb2.com; it's on your bucket's card.
  • “Choose your Wasabi bucket's region”: the one you chose when you created it (it shows in the bucket list).
  • “That doesn't look like your Cloudflare account ID”: it's 32 letters and numbers, in “Account Details”.
  • “The bucket name is letters, numbers, dots and dashes”: copy it exactly as it is (3 to 63).
  • The keys can't read the bucket: check that they're for that bucket, that they have permission to list and read and that you copied both of them in full.
  • Changing bucket: “Change the details”. If it's another bucket, the previous folders are removed: add them again.