steep-balloon-41261
08/30/2023, 10:11 AMdelightful-kilobyte-81039
08/30/2023, 10:14 AMconst egressClient = new EgressClient(
'<https://my-livekit-host>',
'livekit-api-key',
'livekit-api-secret'
);
const info = await egressClient.startRoomCompositeEgress('my-room', {
layout: 'speaker',
});
const egressID = info.egressId;
This would work right? (There is no output variable as mention in the doc)delightful-kilobyte-81039
08/30/2023, 10:21 AMfileRequest.Output.File.Output can be left empty if one of s3, azure, or gcp is supplied with your config.
This is what I inferenced from this line...delightful-kilobyte-81039
08/30/2023, 10:29 AMcurl -X POST https://<your-livekit-host>/twirp/livekit.Egress/StartRoomCompositeEgress \
-H "Authorization: Bearer <access-token>" \
-H 'Content-Type: application/json' \
-d '{"room_name": "your-room", "segments": {"filename_prefix": "your-hls-playlist.m3u8", "s3": {"access_key": "<key>", "secret": "<secret>", "bucket": "<bucket>", "region": "<bucket-region>"}}}'able-gigabyte-21598
08/30/2023, 7:41 PMegressClient.startRoomCompositeEgress('my-room', {
layout: 'speaker',
});
doesn’t tell it whether you want a file, stream, or segmented file outputdelightful-kilobyte-81039
08/30/2023, 10:19 PMdelightful-kilobyte-81039
08/30/2023, 10:26 PM"segments": {"filename_prefix": "your-hls-playlist.m3u8"
what does .m3u8 mean? and is it necessary?able-gigabyte-21598
08/30/2023, 10:26 PMable-gigabyte-21598
08/30/2023, 10:27 PMdelightful-kilobyte-81039
08/30/2023, 10:27 PMcurl -X POST https://<your-livekit-host>/twirp/livekit.Egress/StartRoomCompositeEgress \
-H "Authorization: Bearer <access-token>" \
-H 'Content-Type: application/json' \
-d '{"room_name": "your-room", "segments": {"filename_prefix": "your-hls-playlist.m3u8"}}'
thanks, just for confirmation, this api call is correct right?