Skip to content

Commit

Permalink
Assign correct value to ingress RTMP streamKey (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviu-timar authored May 22, 2024
1 parent bfe7f3d commit 91fec32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ class LivestreamTest : IntegrationTestBase() {
assertSuccess(response)

val rtmp = call.state.ingress.value?.rtmp
println("client token: ${clientImpl.token}")
println("rtmp address: ${rtmp?.address}")
println("rtmp streamKey: ${rtmp?.streamKey}")

// streamKey should be just the token, not apiKey/token
assertThat(rtmp?.streamKey?.equals(clientImpl.token)).isTrue()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public class CallState(
if (it != null) {
val token = call.clientImpl.token
val apiKey = call.clientImpl.apiKey
Ingress(rtmp = RTMP(address = it.rtmp.address, streamKey = "$apiKey/$token"))
Ingress(rtmp = RTMP(address = it.rtmp.address, streamKey = token))
} else {
null
}
Expand Down

0 comments on commit 91fec32

Please sign in to comment.