Skip to content

Commit 4da6e5f

Browse files
tsmith512dcpena
andauthored
[Stream] WebRTC and Signed URL updates (#21639)
* [Stream] WebRTC and Signed URL updates * [Stream] Tweak pricing wording * [Stream] Update date * Update src/content/docs/stream/viewing-videos/securing-your-stream.mdx Co-authored-by: Denise Peña <[email protected]> --------- Co-authored-by: Denise Peña <[email protected]>
1 parent 0279eb4 commit 4da6e5f

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Signed URLs and Infrastructure Improvements on Stream Live WebRTC Beta
3+
description: >
4+
Dynamically optimize, clip, and resize video from any origin, no storage
5+
migration needed.
6+
date: 2025-04-11T12:00:00Z
7+
---
8+
9+
Cloudflare [Stream](/stream/) has completed an infrastructure upgrade for our [Live WebRTC beta](/stream/webrtc-beta/) support which brings increased scalability and improved playback performance to all customers. WebRTC allows broadcasting directly from a browser (or supported WHIP client) with ultra-low latency to tens of thousands of concurrent viewers across the globe.
10+
11+
Additionally, as part of this upgrade, the WebRTC beta now supports Signed URLs to protect playback, just like our standard live stream options (HLS/DASH).
12+
13+
For more information, learn about the [Stream Live WebRTC beta](/stream/webrtc-beta/).

src/content/docs/stream/pricing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Minutes delivered for web playback (Stream Player, HLS, and DASH) are rounded to
6262

6363
**Two people each watch thirty minutes of a video or live broadcast. How much would it cost?**
6464

65-
This will result in 60 minutes of Minutes Delivered usage (or $0.06). Stream bills on minutes of video delivered, not per viewer.
65+
This will result in 60 minutes of Minutes Delivered usage (or $0.06). Stream bills on total minutes of video delivered across all users.
6666

6767
**I have a really large file. Does that cost more?**
6868

src/content/docs/stream/viewing-videos/securing-your-stream.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ Response:
4747

4848
You can program your app to generate token in two ways:
4949

50-
- **Using the /token endpoint to generate signed tokens:** The simplest way to create a signed url token is by calling the /token endpoint. This is recommended for testing purposes or if you are generating less than 10,000 tokens per day.
50+
- **Low-volume or testing: Use the `/token` endpoint to generate a short-lived signed token.** This is recommended for testing purposes or if you are generating less than 1,000 tokens per day. It requires making an API call to Cloudflare for each token. The default result is valid for 1 hour.
5151

52-
- **Using an open-source library:** If you have tens of thousands of daily users and need to generate a high-volume of tokens without calling the /token endpoint _each time_, you can create tokens yourself. This way, you do not need to call a Stream endpoint each time you need to generate a token.
52+
- **Recommended: Use a signing key to create tokens.** If you have thousands of daily users or need to generate a high volume of tokens, you can create tokens yourself using a signing key. This way, you do not need to call a Stream API each time you need to generate a token.
5353

5454
## Option 1: Using the /token endpoint
5555

56-
You can call the `/token` endpoint for any video that is marked private to get a signed URL token which expires in one hour:
56+
You can call the `/token` endpoint for any video that is marked private to get a signed URL token which expires in one hour. This method does not support [Live WebRTC](/stream/webrtc-beta/).
5757

5858
```bash
5959
curl --request POST \
@@ -168,9 +168,9 @@ export default {
168168
};
169169
```
170170

171-
## Option 2: Generating signed tokens without calling the `/token` endpoint
171+
## Option 2: Using a signing key to create signed tokens
172172

173-
If you are generating a high-volume of tokens, it is best to generate new tokens without needing to call the Stream API each time.
173+
If you are generating a high-volume of tokens, using [Live WebRTC](/stream/webrtc-beta/), or need to customize the access rules, generate new tokens using a signing key so you do not need to call the Stream API each time.
174174

175175
### Step 1: Call the `/stream/key` endpoint _once_ to obtain a key
176176

0 commit comments

Comments
 (0)