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

Use adapter.js #940

Merged
merged 6 commits into from
Jun 30, 2017
Merged

Use adapter.js #940

merged 6 commits into from
Jun 30, 2017

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Jun 29, 2017

Description

This PR updates most of the webrtc API calls and adds adapter.js to simplify supporting different browser.

  • There's a new stack called baseStack that is inherited by both ChromeStableStack and FirefoxStack and takes care of most of the functionality. Only small differences are now implemented in each browsers' stack.
  • Added helper methods for SDP mangling
  • Updated Connection getUserMedia API.
  • Removed bowserStack as it was largely unsupported.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

No changes to the API

[] 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.

This PR is really interesting!! I still need to play a little bit with it, but here I left a minor comments.

We should remove these lines in Connection.js:

} else if (that.browser === 'bowser') {
     L.Logger.debug('Bowser Stack');		     
     that = Erizo.BowserStack(spec);

@@ -167,7 +172,7 @@ Erizo.Stream = (specInput) => {
const options = optionsInput || {};
that.elementID = elementID;
let player;
if (that.hasVideo() || this.hasScreen()) {
if (that.hasVideo() || that.hasScreen()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch!


that.pcConfig = {
iceServers: [],
Copy link
Contributor

Choose a reason for hiding this comment

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

nice! 👍

}
result += 'a=x-google-flag:conference\r\n';
return sdp.replace(matchGroup[0], result);
};

const setMaxBW = (sdpInput) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

bye bye!

};

that.processSignalingMessage = (msgInput) => {
// L.Logger.info("Process Signaling Message", msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider removing commented code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

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!

@lodoyun lodoyun merged commit 9705d7a into lynckia:master Jun 30, 2017
@lodoyun lodoyun deleted the add/useAdapterjs branch August 9, 2017 09:42
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