Skip to content

Getting the Lib

Adnan Mujagić edited this page Jul 5, 2024 · 3 revisions

There are a few ways in which you can get our library. We publish it as an NPM package and as a standalone JS file hosted on a CDN.

If you want to add it as an NPM dependency, run the following:

npm install infobip-rtc-extensions --save

After which you would use it in your project like this:

let infobipRtcExtensions = require('infobip-rtc-extensions');

or as ES6 import:

import {RTCVideoFilter} from "infobip-rtc-extensions"

You can include our distribution file in your JavaScript from our CDN:

<script src="//rtc.cdn.infobip.com/1.1.0/infobip.rtc.extensions.js"></script>

The latest tag is also available:

<script src="//rtc.cdn.infobip.com/latest/infobip.rtc.extensions.js"></script>