@@ -80,16 +80,16 @@ When a Mux video is uploaded/chosen in a document via this plugin, it gets store
80
80
``` json5
81
81
// example document
82
82
{
83
- " _type" : " exampleSchemaWithVideo" ,
83
+ _type: ' exampleSchemaWithVideo' ,
84
84
// 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
+ },
93
93
}
94
94
```
95
95
@@ -114,52 +114,52 @@ For reference, here's an example `mux.videoAsset` document:
114
114
115
115
``` json5
116
116
{
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' ,
123
123
// 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: [
134
134
{
135
- " id " : " YA02HBpY02fKWHDRMNilo301pdH02LY3k9HTcK43ItGJLWA" ,
136
- " policy" : " signed"
137
- }
135
+ id : ' YA02HBpY02fKWHDRMNilo301pdH02LY3k9HTcK43ItGJLWA' ,
136
+ policy: ' signed' ,
137
+ },
138
138
],
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: [
143
143
{
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 ,
150
150
},
151
151
{
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
+ },
159
159
],
160
- " id " : " 7ovyI76F92n02H00mWP7lOCZMIU00N4iysDiQDNppX026HY" ,
161
- " mp4_support" : " none"
162
- }
160
+ id : ' 7ovyI76F92n02H00mWP7lOCZMIU00N4iysDiQDNppX026HY' ,
161
+ mp4_support: ' none' ,
162
+ },
163
163
}
164
164
```
165
165
0 commit comments