diff --git a/.changeset/egress-passthrough.md b/.changeset/egress-passthrough.md new file mode 100644 index 0000000..64060a1 --- /dev/null +++ b/.changeset/egress-passthrough.md @@ -0,0 +1,5 @@ +--- +"server-sdk-kotlin": minor +--- + +Update protocol: `startEgress` accepts the new `EncodingOptionsPreset.PASSTHROUGH` to skip transcoding for a single-track `MediaSource`. Removes the unused `UpdateEgressRequest` message. diff --git a/protocol b/protocol index 39fc751..2122e1d 160000 --- a/protocol +++ b/protocol @@ -1 +1 @@ -Subproject commit 39fc751df610243c1bfdf85d3be6b3928ecef014 +Subproject commit 2122e1d08bc97ef941c07ae530d5a45f6f05dd2c diff --git a/src/test/kotlin/io/livekit/server/EgressServiceClientTest.kt b/src/test/kotlin/io/livekit/server/EgressServiceClientTest.kt index 1bc2f5d..4bc93c3 100644 --- a/src/test/kotlin/io/livekit/server/EgressServiceClientTest.kt +++ b/src/test/kotlin/io/livekit/server/EgressServiceClientTest.kt @@ -225,6 +225,20 @@ class EgressServiceClientTest { ) } + @Test + fun startEgressMediaPassthrough() { + client.startEgress( + roomName = "room", + media = LivekitEgress.MediaSource.getDefaultInstance(), + outputs = listOf( + LivekitEgress.Output.newBuilder() + .setFile(LivekitEgress.FileOutput.getDefaultInstance()) + .build(), + ), + optionsPreset = LivekitEgress.EncodingOptionsPreset.PASSTHROUGH, + ) + } + @Test fun startEgressWithOptionsStorageAndWebhooks() { client.startEgress(