import Mux from "npm:@mux/mux-node";
const mux = new Mux({
tokenId: Deno.env.get("MUX_TOKEN_ID"),
tokenSecret: Deno.env.get("MUX_TOKEN_SECRET"),
});
const newAsset = await mux.video.assets.create({
input: "https://stream.mux.com/LRzgU4NGF2esRmJw28twvNefmNxdXw6Y/high.mp4",
playback_policy: [
"public"
],
encoding_tier: "smart",
mp4_support: "audio-only"
});
console.log(newAsset);