-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lobby for dial-in #300
Conversation
33ba623
to
15ddb46
Compare
|
||
String region = JigasiBundleActivator.getConfigurationService() | ||
.getString(LOCAL_REGION_PNAME); | ||
if(!StringUtils.isNullOrEmpty(region)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need this. This is for the main room so we inform jicofo for our region to select us appropriate jvb. We do not have media for lobby room so no need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
new ColibriStatsExtension.Stat( | ||
ColibriStatsExtension.VERSION, | ||
CurrentVersionImpl.VERSION.getApplicationName() | ||
+ " " + CurrentVersionImpl.VERSION)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, we do not need this in lobby.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
if (initiator.getChildExtensions().size() > 0) | ||
{ | ||
((ChatRoomJabberImpl)mucRoom) | ||
.addPresencePacketExtensions(initiator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also can be dropped for lobby.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed code
} | ||
|
||
private void approve(ChatRoomInvitationReceivedEvent chatRoomInvitationReceivedEvent) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not "approve" ... it just adds a listener for access approved. You can move it directly under invitationReceived.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed approve and reject and moved the code in the listener methods
} | ||
|
||
private void reject() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also be moved ... or at least renamed as "rejected".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
d20b9ea
to
78782e4
Compare
@@ -0,0 +1,213 @@ | |||
package org.jitsi.jigasi.lobby; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing license header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And in general missing javadocs for this class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added javadocs.
72d918d
to
42309f6
Compare
4bc3f16
to
3c604a0
Compare
|
||
if (alternateAddress != null) | ||
{ | ||
String mainRoomIdentifier = alternateAddress; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this extra variable, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
3263043
to
4c27a84
Compare
a703691
to
8b23a92
Compare
d76d7b4
to
2304144
Compare
@@ -22,18 +22,24 @@ | |||
import net.java.sip.communicator.util.*; | |||
import org.gagravarr.ogg.*; | |||
import org.gagravarr.opus.*; | |||
import org.glassfish.hk2.api.Operation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry forgot about imports
@@ -386,12 +387,13 @@ private static void injectSoundFileInStream( | |||
System.arraycopy( | |||
data, 0, rtp.getBuffer(), rtp.getPayloadOffset(), data.length); | |||
|
|||
long sleepTime = nSamples/48 - (System.currentTimeMillis() - timePushPreviousData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timePushPreviousData
would have been set on the previous iteration after the sleep()
call, so it doesn't take into account how long sleep
took. Or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's true, but we count how long it took since we last sent a packet so we can sleep the rest of the time of that interval.
Make sure we not over sleep and send the first 200ms directly. Thanks to @bgrozev.
Overall ready to be merged, there might be cases where lobby listeners are not cleared, maybe on hangup.