@@ -31,7 +31,6 @@ const mux = new Mux({
31
31
async function main () {
32
32
const asset = await mux .video .assets .create ({
33
33
input: [{ url: ' https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],
34
- playback_policy: [' public' ],
35
34
});
36
35
37
36
console .log (asset .id );
@@ -56,7 +55,6 @@ const mux = new Mux({
56
55
async function main() {
57
56
const params: Mux .Video .AssetCreateParams = {
58
57
input: [{ url: ' https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],
59
- playback_policy: [' public' ],
60
58
};
61
59
const asset: Mux .Video .Asset = await mux .video .assets .create (params );
62
60
}
@@ -346,19 +344,13 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
346
344
const mux = new Mux ();
347
345
348
346
const response = await mux .video .assets
349
- .create ({
350
- input: [{ url: ' https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],
351
- playback_policy: [' public' ],
352
- })
347
+ .create ({ input: [{ url: ' https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }] })
353
348
.asResponse ();
354
349
console .log (response .headers .get (' X-My-Header' ));
355
350
console .log (response .statusText ); // access the underlying Response object
356
351
357
352
const { data : asset, response : raw } = await mux .video .assets
358
- .create ({
359
- input: [{ url: ' https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],
360
- playback_policy: [' public' ],
361
- })
353
+ .create ({ input: [{ url: ' https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }] })
362
354
.withResponse ();
363
355
console .log (raw .headers .get (' X-My-Header' ));
364
356
console .log (asset .id );
0 commit comments