import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.multistream.update({
url: "rtmps://live.my-service.tv/channel/secretKey",
}, "<id>");
// Handle the result
console.log(result);
}
run();