-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
e2ee: also enable on p2p connections #1107
Conversation
@saghul I don't think that is quite enough and needs additional handling in _setupSenderE2EEForTrack (and the receiver), right? |
(also is this more complicated? what about transitions...) |
also enables e2ee on peer-to-peer connections. While a bit unnecessary it avoids the confusing UX of things working until a third person joins
I'll check, I think some more stuff is needed. |
I think I found them all. API change: _setupSenderE2EEForTrack gets the jvb/p2p session as first argument |
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.
Let's make them symmetrical so it's easier to follow later on.
return; | ||
} | ||
const session = track.isP2P ? this.p2pJingleSession : this.jvbJingleSession; | ||
const pc = session && session.peerconnection; |
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.
use getActiveTPC
instead
if (!this._e2eeCtx) { | ||
return; | ||
} | ||
const pc = session.peerconnection; |
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 ccould use geetActiveTPC` here as well instead of passsing the session around.
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.
but I want the peerconnection the track is received on, no matter what the current establishment status of the p2p ice connection is?
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.
That is taken care of by caller function already, isn't it?
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.
no, this is called from JitsiConference.prototype.onCallAccepted (line 1701) for p2p and JitsiConference.prototype._acceptJvbIncomingCall for the sfu call. In both cases we know exactly where this is originating
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.
Ah, gotcha.
also enables e2ee on peer-to-peer connections. While a bit unnecessary
it avoids the confusing UX of things working until a third person joins