POST
/
stream
/
{id}
/
create-multistream-target
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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the parent stream

Body

application/json
profile
string
required

Name of transcoding profile that should be sent. Use "source" for pushing source stream data

Required string length: 1 - 500
Example:

"720p0"

videoOnly
boolean
default:false

If true, the stream audio will be muted and only silent video will be pushed to the target.

Example:

false

id
string

ID of multistream target object where to push this stream

Example:

"PUSH123"

spec
object

Inline multistream target object. Will automatically create the target resource to be used by the created stream.

Response

204
_mintlify/placeholder

Success (No content)