Typescript
import { Livepeer } from "livepeer"; const livepeer = new Livepeer({ apiKey: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await livepeer.stream.addMultistreamTarget({ profile: "720p0", videoOnly: false, id: "PUSH123", spec: { name: "My target", url: "rtmps://live.my-service.tv/channel/secretKey", }, }, "<id>"); // Handle the result console.log(result); } run();
This response does not have an example.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the parent stream
Success (No content)
Was this page helpful?