# Using adapter.js

**URL:** <https://discourse.lynckia.com/t/using-adapter-js/527>\
**Category:** Features\
**Created:** [June 29, 2017, 2:56pm UTC](https://discourse.lynckia.com/t/using-adapter-js/527 "2017-06-29T14:56:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/pedro/32/24_2.png) [@pedro](https://discourse.lynckia.com/u/pedro)\
**Post date:** [June 29, 2017, 2:56pm UTC](https://discourse.lynckia.com/t/using-adapter-js/527/1 "2017-06-29T14:56:19Z")

</div>

Following the discussion [here](http://discourse.lynckia.com/t/refactoring-erizo-client/520)  
I’ve just pushed a PR (here)[[https://github.com/lynckia/licode/pull/940](https://github.com/lynckia/licode/pull/940)] that includes adapter.js and greatly simplifies the differences between the different stacks.

To answer @Francesco_Durighetto question about pros and cons I started playing around with it and couldn’t stop until it was working 🙂  
**cons**  
Frankly, I don’t see any cons besides adding a new library to the Client. We’re planning on updating the process of including libraries to make it less rudimentary.  
**pros**

- I’ve managed to merge almost all the functionality of FirefoxStack and ChromeStack into BaseStack, making it more readable in the process. No more error-prone duplicated code.
- No more _constraints_ for different browser’s getUserMedia causing headaches.
- It should be a lot easier to add support for new browsers in the client side if we trust adapter.js will be updated.

Of course, we will welcome all the help we get to test this.

---

<div class="post-metadata">

**Author:** ![Francesco\_Durighetto](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@Francesco\_Durighetto](https://discourse.lynckia.com/u/Francesco_Durighetto)\
**Post date:** [June 29, 2017, 3:29pm UTC](https://discourse.lynckia.com/t/using-adapter-js/527/2 "2017-06-29T15:29:18Z")

</div>

Really appreciate your work, can’t wait to test it!!!

I am currently testing the simulcast 'cause I’m ready to push it in production but found some “critical” issue with new version of chrome. I opened an issue in github.

Once fixed I’ll jump on the client side!
