Client to access Egress APIs

Hierarchy

  • default
    • EgressClient

Constructors

  • Parameters

    • host: string

      hostname including protocol. i.e. 'https://.livekit.cloud'

    • OptionalapiKey: string

      API Key, can be set in env var LIVEKIT_API_KEY

    • Optionalsecret: string

      API Secret, can be set in env var LIVEKIT_API_SECRET

    Returns EgressClient

Methods

  • Parameters

    • roomName: string

      room name

    • output:
          | EncodedOutputs
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput

      file or stream output

    • Optionalopts: RoomCompositeOptions

      RoomCompositeOptions

    Returns Promise<EgressInfo>

  • Parameters

    • roomName: string
    • output:
          | EncodedOutputs
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput
    • Optionallayout: string
    • Optionaloptions: EncodingOptionsPreset | EncodingOptions
    • OptionalaudioOnly: boolean
    • OptionalvideoOnly: boolean
    • OptionalcustomBaseUrl: string

    Returns Promise<EgressInfo>

    use RoomCompositeOptions instead

  • Parameters

    • roomName: string

      room name

    • output:
          | EncodedOutputs
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput

      file or stream output

    • Optionalopts: TrackCompositeOptions

      TrackCompositeOptions

    Returns Promise<EgressInfo>

  • Parameters

    • roomName: string
    • output:
          | EncodedOutputs
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput
    • OptionalaudioTrackId: string
    • OptionalvideoTrackId: string
    • Optionaloptions: EncodingOptionsPreset | EncodingOptions

    Returns Promise<EgressInfo>

    use TrackCompositeOptions instead

  • Parameters

    • roomName: string

      room name

    • output: string | DirectFileOutput

      file or websocket output

    • trackId: string

      track Id

    Returns Promise<EgressInfo>

  • Parameters

    • egressId: string
    • OptionaladdOutputUrls: string[]
    • OptionalremoveOutputUrls: string[]

    Returns Promise<EgressInfo>