Skip to content
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

Refactor Stream Management in ErizoController #1463

Merged
merged 13 commits into from
Sep 26, 2019

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Sep 24, 2019

Description
This PR updates #1398 with clean commits, resolved conflicts and a couple of new fixes.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo comments

erizo_controller/erizoController/models/Client.js Outdated Show resolved Hide resolved
erizo_controller/erizoController/models/Client.js Outdated Show resolved Hide resolved
@@ -167,6 +180,9 @@ class Client extends events.EventEmitter {
'state: SUBSCRIBER_READY, ' +
`streamId: ${signMess.streamId}, ` +
`clientId: ${this.id}`);
this.roomController
.getPublishedStreamById(signMess.streamId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd check if stream is not undefined

erizo_controller/erizoController/models/Client.js Outdated Show resolved Hide resolved
@@ -357,6 +382,141 @@ class Client extends events.EventEmitter {
});
}

_publishExternalInput(id, options, sdp, callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like all these internal functions!

const dataSubscribers = [];

that.getID = () => spec.id;
const StreamStates = Object.freeze({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@lodoyun lodoyun merged commit a54eb4a into lynckia:master Sep 26, 2019
@lodoyun lodoyun deleted the add/streamManaginInErizoController branch September 26, 2019 12:14
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants