Skip to content

Commit 50926d6

Browse files
committed
chore(prettier): 🤖 ✨
1 parent 081f601 commit 50926d6

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

‎README.md

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ When a Mux video is uploaded/chosen in a document via this plugin, it gets store
8080
```json5
8181
// example document
8282
{
83-
"_type": "exampleSchemaWithVideo",
83+
_type: 'exampleSchemaWithVideo',
8484
// Example video field
85-
"myVideoField": {
86-
"_type": "mux.video",
87-
"asset": {
88-
"_type": "reference",
89-
"_weak": true,
90-
"_ref": "4e37284e-cec2-406d-973c-fdf9ab1e5598" // 👈 ID of the document holding the video's Mux data
91-
}
92-
}
85+
myVideoField: {
86+
_type: 'mux.video',
87+
asset: {
88+
_type: 'reference',
89+
_weak: true,
90+
_ref: '4e37284e-cec2-406d-973c-fdf9ab1e5598', // 👈 ID of the document holding the video's Mux data
91+
},
92+
},
9393
}
9494
```
9595

@@ -114,52 +114,52 @@ For reference, here's an example `mux.videoAsset` document:
114114

115115
```json5
116116
{
117-
"_id": "4e37284e-cec2-406d-973c-fdf9ab1e5598",
118-
"_type": "mux.videoAsset",
119-
"assetId": "7ovyI76F92n02H00mWP7lOCZMIU00N4iysDiQDNppX026HY",
120-
"filename": "mux-example-video.mp4",
121-
"status": "ready",
122-
"playbackId": "YA02HBpY02fKWHDRMNilo301pdH02LY3k9HTcK43ItGJLWA",
117+
_id: '4e37284e-cec2-406d-973c-fdf9ab1e5598',
118+
_type: 'mux.videoAsset',
119+
assetId: '7ovyI76F92n02H00mWP7lOCZMIU00N4iysDiQDNppX026HY',
120+
filename: 'mux-example-video.mp4',
121+
status: 'ready',
122+
playbackId: 'YA02HBpY02fKWHDRMNilo301pdH02LY3k9HTcK43ItGJLWA',
123123
// Full Mux asset data:
124-
"data": {
125-
"encoding_tier": "smart",
126-
"max_resolution_tier": "1080p",
127-
"aspect_ratio": "16:9",
128-
"created_at": "1706645034",
129-
"duration": 25.492133,
130-
"status": "ready",
131-
"master_access": "none",
132-
"max_stored_frame_rate": 29.97,
133-
"playback_ids": [
124+
data: {
125+
encoding_tier: 'smart',
126+
max_resolution_tier: '1080p',
127+
aspect_ratio: '16:9',
128+
created_at: '1706645034',
129+
duration: 25.492133,
130+
status: 'ready',
131+
master_access: 'none',
132+
max_stored_frame_rate: 29.97,
133+
playback_ids: [
134134
{
135-
"id": "YA02HBpY02fKWHDRMNilo301pdH02LY3k9HTcK43ItGJLWA",
136-
"policy": "signed"
137-
}
135+
id: 'YA02HBpY02fKWHDRMNilo301pdH02LY3k9HTcK43ItGJLWA',
136+
policy: 'signed',
137+
},
138138
],
139-
"resolution_tier": "1080p",
140-
"ingest_type": "on_demand_url",
141-
"max_stored_resolution": "HD",
142-
"tracks": [
139+
resolution_tier: '1080p',
140+
ingest_type: 'on_demand_url',
141+
max_stored_resolution: 'HD',
142+
tracks: [
143143
{
144-
"max_channel_layout": "stereo",
145-
"max_channels": 2,
146-
"id": "00MKMC73SYimw1YTh0102lPJJp9w2R5rHddpNX1N9opAMk",
147-
"type": "audio",
148-
"primary": true,
149-
"duration": 25.45
144+
max_channel_layout: 'stereo',
145+
max_channels: 2,
146+
id: '00MKMC73SYimw1YTh0102lPJJp9w2R5rHddpNX1N9opAMk',
147+
type: 'audio',
148+
primary: true,
149+
duration: 25.45,
150150
},
151151
{
152-
"max_frame_rate": 29.97,
153-
"max_height": 1080,
154-
"id": "g1wEph3CVvbJL01YNKzAWMyH8N1SxW00WeECGjqwEHW9g",
155-
"type": "video",
156-
"duration": 25.4254,
157-
"max_width": 1920
158-
}
152+
max_frame_rate: 29.97,
153+
max_height: 1080,
154+
id: 'g1wEph3CVvbJL01YNKzAWMyH8N1SxW00WeECGjqwEHW9g',
155+
type: 'video',
156+
duration: 25.4254,
157+
max_width: 1920,
158+
},
159159
],
160-
"id": "7ovyI76F92n02H00mWP7lOCZMIU00N4iysDiQDNppX026HY",
161-
"mp4_support": "none"
162-
}
160+
id: '7ovyI76F92n02H00mWP7lOCZMIU00N4iysDiQDNppX026HY',
161+
mp4_support: 'none',
162+
},
163163
}
164164
```
165165

0 commit comments

Comments
 (0)