Skip to content

Commit e4ddf09

Browse files
chore: rebuild project due to codegen change (#411)
1 parent ce5c0d7 commit e4ddf09

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const mux = new Mux({
3131
async function main() {
3232
const asset = await mux.video.assets.create({
3333
input: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],
34-
playback_policy: ['public'],
3534
});
3635

3736
console.log(asset.id);
@@ -56,7 +55,6 @@ const mux = new Mux({
5655
async function main() {
5756
const params: Mux.Video.AssetCreateParams = {
5857
input: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],
59-
playback_policy: ['public'],
6058
};
6159
const asset: Mux.Video.Asset = await mux.video.assets.create(params);
6260
}
@@ -346,19 +344,13 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
346344
const mux = new Mux();
347345

348346
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' }] })
353348
.asResponse();
354349
console.log(response.headers.get('X-My-Header'));
355350
console.log(response.statusText); // access the underlying Response object
356351

357352
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' }] })
362354
.withResponse();
363355
console.log(raw.headers.get('X-My-Header'));
364356
console.log(asset.id);

0 commit comments

Comments
 (0)