import { TargetAddPayload } from "livepeer/models/components";
let value: TargetAddPayload = {
profile: "720p0",
videoOnly: false,
id: "PUSH123",
spec: {
name: "My target",
url: "rtmps://live.my-service.tv/channel/secretKey",
},
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
profile |
string | ✔️ | Name of transcoding profile that should be sent. Use "source" for pushing source stream data |
720p0 |
videoOnly |
boolean | ➖ | If true, the stream audio will be muted and only silent video will be pushed to the target. |
false |
id |
string | ➖ | ID of multistream target object where to push this stream | PUSH123 |
spec |
components.TargetAddPayloadSpec | ➖ | Inline multistream target object. Will automatically create the target resource to be used by the created stream. |