No, you do not need to import any library. webRTC is included in Chrome and Firefox (as well as for the beta version of Chrome and Firefox on Android).
Your error may be due to the fact that you need to prefix it with webkit
as follows:
peer = new webkitRTCPeerConnection(...)
source share