Skip to content

Commit 73be140

Browse files
authored
[Stream] URL format correction, beta badge (#20606)
1 parent 22f614d commit 73be140

File tree

1 file changed

+4
-3
lines changed
  • src/content/docs/stream/transform-videos

1 file changed

+4
-3
lines changed

src/content/docs/stream/transform-videos/index.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ pcx_content_type: concept
33
title: Transform videos
44
sidebar:
55
order: 5
6-
6+
badge:
7+
text: Beta
78
---
89

910
Media Transformations let you optimize and manipulate videos stored _outside_ of the Cloudflare Stream. Transformed videos and images are served from one of your zones on Cloudflare.
@@ -28,7 +29,7 @@ To enable transformations on your zone:
2829
You can convert and resize videos by requesting them via a specially-formatted URL, without writing any code. The URL format is:
2930

3031
```
31-
https://example.com/media/<OPTIONS>/<SOURCE-VIDEO>
32+
https://example.com/cdn-cgi/media/<OPTIONS>/<SOURCE-VIDEO>
3233
```
3334

3435
- `example.com`: Your website or zone on Cloudflare, with Transformations enabled.
@@ -39,7 +40,7 @@ https://example.com/media/<OPTIONS>/<SOURCE-VIDEO>
3940
For example, this URL will source an HD video from an R2 bucket, shorten it, crop and resize it as a square, and remove the audio.
4041

4142
```
42-
https://example.com/media/mode=video,time=5s,duration=5s,width=500,height=500,fit=crop,audio=false/https://pub-8613b7f94d6146408add8fefb52c52e8.r2.dev/aus-mobile-demo.mp4
43+
https://example.com/cdn-cgi/media/mode=video,time=5s,duration=5s,width=500,height=500,fit=crop,audio=false/https://pub-8613b7f94d6146408add8fefb52c52e8.r2.dev/aus-mobile-demo.mp4
4344
```
4445

4546
The result is an MP4 that can be used in an HTML video element without a player library.

0 commit comments

Comments
 (0)