adapter.js is a shim to insulate apps from spec changes and prefix differences.
Today, adapter.js aims to fill the gaps and differences across all browsers supporting WebRTC and the specification itself. That is required since browsers behave differently from one another and from the latest WebRTC spec.
The adapter.js project can be found on github.