Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 3.76 KB

targetaddpayload.md

File metadata and controls

26 lines (21 loc) · 3.76 KB

TargetAddPayload

Example Usage

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",
  },
};

Fields

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.