Open roanta2 opened 1 year ago
Hi, thanks for your contribution! If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.
Merging #508 (24a0dcc) into master (c23529a) will increase coverage by
0.11%
. The diff coverage is5.55%
.
Others probably have a better memory of this than I do, but there's actually existing code that I believe is trying to support exactly this. If you look at this chunk you removed in your PR:
val rtmpUrl = if (startIq.streamId.isRtmpUrl()) {
startIq.streamId
} else {
"$YOUTUBE_URL/${startIq.streamId}"
}
That's allowing for the value passed as the streamId
to be an entire RTMP url.
Others probably have a better memory of this than I do, but there's actually existing code that I believe is trying to support exactly this. If you look at this chunk you removed in your PR:
val rtmpUrl = if (startIq.streamId.isRtmpUrl()) { startIq.streamId } else { "$YOUTUBE_URL/${startIq.streamId}" }
That's allowing for the value passed as the
streamId
to be an entire RTMP url.
Yep, so I moved this part in StreamingJibriService.kt
without the else branch. My first comment is kind of misleading so I didn't add the functionality for the streamId
to be the entire RTMP url, as it was already there, I just removed the custom youtube stuff.
@roanta2 We'll need to modify Jitsi Meet too to use the full rtmp URL format.
LGTM at a glance, but we need to wait to have Jitsi Meet ready before we can apply this. Can you start working on that @roanta2 ?
@saghul Thanks. I'm mostly backend but it seems like a minor change in Jisti Meet, so I'll give it a try.
Refactoring on livestream part to not treat youtube as a special case. So now you need to provide the entire rtmp url ( stream url + key).