Constructors
constructor
- new EgressClient(host: string, apiKey?: string, secret?: string): EgressClient
-
Parameters
-
host: string
-
Optional apiKey: string
-
Optional secret: string
Methods
listEgress
- listEgress(roomName?: string): Promise<EgressInfo>
-
Parameters
-
Optional roomName: string
Returns Promise<EgressInfo>
startWebCompositeEgress
- startWebCompositeEgress(roomName: string, layout: string, output: EncodedFileOutput | StreamOutput, options?: EncodingOptionsPreset | EncodingOptions, audioOnly?: boolean, videoOnly?: boolean, customBaseUrl?: string): Promise<EgressInfo>
-
Parameters
-
roomName: string
-
layout: string
-
output: EncodedFileOutput | StreamOutput
-
Optional options: EncodingOptionsPreset | EncodingOptions
-
Optional audioOnly: boolean
-
Optional videoOnly: boolean
-
Optional customBaseUrl: string
Returns Promise<EgressInfo>
stopEgress
- stopEgress(egressId: string): Promise<EgressInfo>
-
Parameters
Returns Promise<EgressInfo>
updateLayout
- updateLayout(egressId: string, layout: string): Promise<EgressInfo>
-
Parameters
-
egressId: string
-
layout: string
Returns Promise<EgressInfo>
updateStream
- updateStream(egressId: string, addOutputUrls?: string[], removeOutputUrls?: string[]): Promise<EgressInfo>
-
Parameters
-
egressId: string
-
Optional addOutputUrls: string[]
-
Optional removeOutputUrls: string[]
Returns Promise<EgressInfo>
Client to access Egress APIs