Skip to content

Commit 5d5a16f

Browse files
moved Get started up
1 parent 0c8cf04 commit 5d5a16f

File tree

2 files changed

+71
-72
lines changed

2 files changed

+71
-72
lines changed

src/content/docs/stream/get-started.mdx

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22
pcx_content_type: get-started
33
title: Get started
44
sidebar:
5-
order: 2
6-
5+
order: 1
76
---
87

98
:::note[Before you get started:]
109

11-
1210
You must first [create a Cloudflare account](/fundamentals/setup/account/create-account/) and [create an API token](/fundamentals/api/get-started/create-token/) to begin using Stream.
1311

14-
1512
:::
1613

17-
* [Upload your first video](/stream/get-started#upload-your-first-video)
18-
* [Start your first live stream](/stream/get-started#start-your-first-live-stream)
14+
- [Upload your first video](/stream/get-started#upload-your-first-video)
15+
- [Start your first live stream](/stream/get-started#start-your-first-live-stream)
1916

2017
## Upload your first video
2118

@@ -47,25 +44,25 @@ https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/stream/<VIDEO_UID>
4744

4845
```json title="Response" {6}
4946
{
50-
"result": {
51-
"uid": "6b9e68b07dfee8cc2d116e4c51d6a957",
52-
"preview": "https://customer-f33zs165nr7gyfy4.cloudflarestream.com/6b9e68b07dfee8cc2d116e4c51d6a957/watch",
53-
"thumbnail": "https://customer-f33zs165nr7gyfy4.cloudflarestream.com/6b9e68b07dfee8cc2d116e4c51d6a957/thumbnails/thumbnail.jpg",
54-
"readyToStream": true,
55-
"status": {
56-
"state": "ready"
57-
},
58-
"meta": {
59-
"downloaded-from": "https://storage.googleapis.com/stream-example-bucket/video.mp4",
60-
"name": "My First Stream Video"
61-
},
62-
"created": "2020-10-16T20:20:17.872170843Z",
63-
"size": 9032701,
64-
//...
65-
},
66-
"success": true,
67-
"errors": [],
68-
"messages": []
47+
"result": {
48+
"uid": "6b9e68b07dfee8cc2d116e4c51d6a957",
49+
"preview": "https://customer-f33zs165nr7gyfy4.cloudflarestream.com/6b9e68b07dfee8cc2d116e4c51d6a957/watch",
50+
"thumbnail": "https://customer-f33zs165nr7gyfy4.cloudflarestream.com/6b9e68b07dfee8cc2d116e4c51d6a957/thumbnails/thumbnail.jpg",
51+
"readyToStream": true,
52+
"status": {
53+
"state": "ready"
54+
},
55+
"meta": {
56+
"downloaded-from": "https://storage.googleapis.com/stream-example-bucket/video.mp4",
57+
"name": "My First Stream Video"
58+
},
59+
"created": "2020-10-16T20:20:17.872170843Z",
60+
"size": 9032701
61+
//...
62+
},
63+
"success": true,
64+
"errors": [],
65+
"messages": []
6966
}
7067
```
7168

@@ -77,31 +74,33 @@ To play video on your website with the [Stream Player](/stream/viewing-videos/us
7774

7875
```html
7976
<iframe
80-
src="https://customer-<CODE>.cloudflarestream.com/<VIDEO_UID>/iframe"
81-
title="Example Stream video"
82-
frameBorder="0"
83-
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
84-
allowFullScreen>
77+
src="https://customer-<CODE>.cloudflarestream.com/<VIDEO_UID>/iframe"
78+
title="Example Stream video"
79+
frameborder="0"
80+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
81+
allowfullscreen
82+
>
8583
</iframe>
8684
```
8785

8886
The embed code above can also be found in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/stream).
8987

9088
<figure data-type="stream">
91-
<div class="AspectRatio" style="--aspect-ratio: calc(16 / 9)">
92-
<iframe
93-
class="AspectRatio--content"
94-
src="https://iframe.videodelivery.net/5d5bc37ffcf54c9b82e996823bffbb81?muted=true"
95-
title="Example Stream video"
96-
frame-border="0"
97-
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen"></iframe>
98-
</div>
89+
<div class="AspectRatio" style="--aspect-ratio: calc(16 / 9)">
90+
<iframe
91+
class="AspectRatio--content"
92+
src="https://iframe.videodelivery.net/5d5bc37ffcf54c9b82e996823bffbb81?muted=true"
93+
title="Example Stream video"
94+
frame-border="0"
95+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen"
96+
></iframe>
97+
</div>
9998
</figure>
10099

101100
### Next steps
102101

103-
* [Edit your video](/stream/edit-videos/) and add captions or watermarks
104-
* [Customize the Stream player](/stream/viewing-videos/using-the-stream-player/)
102+
- [Edit your video](/stream/edit-videos/) and add captions or watermarks
103+
- [Customize the Stream player](/stream/viewing-videos/using-the-stream-player/)
105104

106105
## Start your first live stream
107106

@@ -120,22 +119,22 @@ https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/stream/live_inputs
120119

121120
```json title="Response"
122121
{
123-
"uid": "f256e6ea9341d51eea64c9454659e576",
124-
"rtmps": {
125-
"url": "rtmps://live.cloudflare.com:443/live/",
126-
"streamKey": "MTQ0MTcjM3MjI1NDE3ODIyNTI1MjYyMjE4NTI2ODI1NDcxMzUyMzcf256e6ea9351d51eea64c9454659e576"
127-
},
128-
"created": "2021-09-23T05:05:53.451415Z",
129-
"modified": "2021-09-23T05:05:53.451415Z",
130-
"meta": {
131-
"name": "test stream"
132-
},
133-
"status": null,
134-
"recording": {
135-
"mode": "automatic",
136-
"requireSignedURLs": false,
137-
"allowedOrigins": null
138-
}
122+
"uid": "f256e6ea9341d51eea64c9454659e576",
123+
"rtmps": {
124+
"url": "rtmps://live.cloudflare.com:443/live/",
125+
"streamKey": "MTQ0MTcjM3MjI1NDE3ODIyNTI1MjYyMjE4NTI2ODI1NDcxMzUyMzcf256e6ea9351d51eea64c9454659e576"
126+
},
127+
"created": "2021-09-23T05:05:53.451415Z",
128+
"modified": "2021-09-23T05:05:53.451415Z",
129+
"meta": {
130+
"name": "test stream"
131+
},
132+
"status": null,
133+
"recording": {
134+
"mode": "automatic",
135+
"requireSignedURLs": false,
136+
"allowedOrigins": null
137+
}
139138
}
140139
```
141140

@@ -151,20 +150,21 @@ To play the live stream you just started on your website with the [Stream Player
151150

152151
```html
153152
<iframe
154-
src="https://customer-<CODE>.cloudflarestream.com/<VIDEO_UID>/iframe"
155-
title="Example Stream video"
156-
frameBorder="0"
157-
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
158-
allowFullScreen>
153+
src="https://customer-<CODE>.cloudflarestream.com/<VIDEO_UID>/iframe"
154+
title="Example Stream video"
155+
frameborder="0"
156+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
157+
allowfullscreen
158+
>
159159
</iframe>
160160
```
161161

162162
The embed code above can also be found in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/stream).
163163

164164
### Next steps
165165

166-
* [Secure your stream](/stream/viewing-videos/securing-your-stream/)
167-
* [View live viewer counts](/stream/getting-analytics/live-viewer-count/)
166+
- [Secure your stream](/stream/viewing-videos/securing-your-stream/)
167+
- [View live viewer counts](/stream/getting-analytics/live-viewer-count/)
168168

169169
## Accessibility considerations
170170

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@
22
title: Upload videos
33
pcx_content_type: navigation
44
sidebar:
5-
order: 1
5+
order: 2
6+
group:
67
---
78

89
Before you upload your video, review the options for uploading a video, supported formats, and recommendations.
910

1011
## Upload options
1112

12-
| Upload method | When to use |
13-
|---------------|-------------|
14-
|[Stream Dashboard](https://dash.cloudflare.com/?to=/:account/stream)| Upload videos from the Stream Dashboard without writing any code.
15-
|[Upload with a link](/stream/uploading-videos/upload-via-link/)| Upload videos using a link, such as an S3 bucket or content management system.
16-
|[Upload video file](/stream/uploading-videos/upload-video-file/)| Upload videos stored on a computer.
17-
|[Direct creator uploads](/stream/uploading-videos/direct-creator-uploads/)| Allows end users of your website or app to upload videos directly to Cloudflare Stream.
18-
13+
| Upload method | When to use |
14+
| -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
15+
| [Stream Dashboard](https://dash.cloudflare.com/?to=/:account/stream) | Upload videos from the Stream Dashboard without writing any code. |
16+
| [Upload with a link](/stream/uploading-videos/upload-via-link/) | Upload videos using a link, such as an S3 bucket or content management system. |
17+
| [Upload video file](/stream/uploading-videos/upload-video-file/) | Upload videos stored on a computer. |
18+
| [Direct creator uploads](/stream/uploading-videos/direct-creator-uploads/) | Allows end users of your website or app to upload videos directly to Cloudflare Stream. |
1919

2020
## Supported video formats
2121

22-
2322
:::note
2423
Files must be less than 30 GB, and content should be encoded and uploaded in the same frame rate it was recorded.
2524
:::

0 commit comments

Comments
 (0)