Client to access Egress APIs

Hierarchy

  • ServiceBase
    • 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:
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput
          | EncodedOutputs

      file or stream output

    • Optionalopts: RoomCompositeOptions

      RoomCompositeOptions

    Returns Promise<EgressInfo>

  • Parameters

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

    Returns Promise<EgressInfo>

    use RoomCompositeOptions instead

  • Parameters

    • roomName: string

      room name

    • output:
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput
          | EncodedOutputs

      file or stream output

    • Optionalopts: TrackCompositeOptions

      TrackCompositeOptions

    Returns Promise<EgressInfo>

  • Parameters

    • roomName: string
    • output:
          | EncodedFileOutput
          | StreamOutput
          | SegmentedFileOutput
          | EncodedOutputs
    • 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>