-
Notifications
You must be signed in to change notification settings - Fork 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
MediaStreams now use their own worker #1107
Conversation
Hello Pedro! |
@Trisfald You were right. There was an issue in DtlsTransport that could cause the pipeline to work with outdated packets, that is what was hiding the pipeline order problem. |
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.
LGTM! This is a big step towards Single PC. I left just a couple of minor comments.
@@ -178,9 +178,7 @@ void DtlsTransport::onIceData(packetPtr packet) { | |||
} | |||
return; | |||
} else if (this->getTransportState() == TRANSPORT_READY) { | |||
unprotect_packet_->length = len; |
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.
could unprotect_packet_ be local now?
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.
👍
erizo/src/erizo/WebRtcConnection.cpp
Outdated
@@ -68,6 +68,13 @@ WebRtcConnection::~WebRtcConnection() { | |||
ELOG_DEBUG("%s message: Destructor ended", toLog()); | |||
} | |||
|
|||
void WebRtcConnection::close() { |
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.
why do you need to change the location? it might conflict with an ongoing PR ;)
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 particular reason, it liked it better that way. I switched it back.
…o add/MediaStreamWorker
Description
Before this PR MediaStreams shared a worker with the corresponding WebRTCConnection. This PR removes that limitation, instantiating MediaStreams with a different working and properly passing the packet path tasks between the workers.
[] It needs and includes Unit Tests
Changes in Client or Server public APIs
[] It includes documentation for these changes in
/doc
.