abundant-magician-17307
02/27/2025, 9:10 AMgray-monkey-83525
02/27/2025, 9:10 AMabundant-magician-17307
02/27/2025, 9:12 AMabundant-magician-17307
02/27/2025, 9:14 AMabundant-magician-17307
02/27/2025, 11:16 AMgray-monkey-83525
02/27/2025, 11:16 AMimport io.livekit.egress.EgressClient;
import io.livekit.egress.SegmentedFileOutput;
import io.livekit.egress.S3Upload;
import io.livekit.egress.SegmentedFileProtocol;
EgressClient egressClient = new EgressClient("https://your-livekit-host", "livekit-api-key", "livekit-api-secret");
SegmentedFileOutput segmentedOutput = new SegmentedFileOutput.Builder()
.filenamePrefix("livekit-demo/room-composite-test-")
.playlistName("room-composite-test.m3u8")
.segmentDuration(6)
.protocol(SegmentedFileProtocol.HLS_PROTOCOL)
.output(new S3Upload.Builder()
.accessKey("aws-access-key")
.secret("aws-access-secret")
.region("aws-region")
.bucket("my-bucket")
.build())
.build();
egressClient.startRoomCompositeEgress("my-room", segmentedOutput);
您是否需要更详细的信息或有其他问题?
Sources:
- LiveKit文档 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.abundant-magician-17307
02/27/2025, 11:18 AM