Skip to content

Commit

Permalink
Add syncStreams and maxPlayoutDelay to createRoom (#42)
Browse files Browse the repository at this point in the history
* Add syncStreams and maxPlayoutDelay to createRoom

* update protocol
  • Loading branch information
davidzhao authored Oct 26, 2023
1 parent b9be034 commit 127c37f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/main/kotlin/io/livekit/server/RoomServiceClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class RoomServiceClient(
nodeId: String? = null,
metadata: String? = null,
minPlayoutDelay: Int? = null,
maxPlayoutDelay: Int? = null,
syncStreams: Boolean? = null,
): Call<LivekitModels.Room> {
val request = with(LivekitRoom.CreateRoomRequest.newBuilder()) {
this.name = name
Expand All @@ -48,6 +50,12 @@ class RoomServiceClient(
if (minPlayoutDelay != null) {
this.minPlayoutDelay = minPlayoutDelay
}
if (maxPlayoutDelay != null) {
this.maxPlayoutDelay = maxPlayoutDelay
}
if (syncStreams != null) {
this.syncStreams = syncStreams
}
build()
}
val credentials = authHeader(RoomCreate(true))
Expand Down

0 comments on commit 127c37f

Please sign in to comment.