connect-rtc.js provides softphone support to AmazonConnect customers when they choose to directly integrate with AmazonConnect API and not using AmazonConnect web application.
It implements Amazon Connect WebRTC signaling protocol and integrates with browser WebRTC APIs to provide a simple contact session interface which can be integrated with Amazon Connect StreamJS seemlessly.
Usage
Prebuilt releases
In the gh-pages branch prebuilt ready to use files can be downloaded/linked directly.
Working with GitHub registry for Omnissa
Ensure this step is followed before runningnpm install
Please refer to this GitHub article to authenticate your project and use our public registry.
You will need to create a github token and either authenticate directly or use/create an .npmrc file within your project. An example .npmrc
file is as follows:
Replace the softphone parameter (within the second parameter of connect.core.initCCP()) with
allowFramedSoftphone: false
This would stop embedded CCP from handling softphone call
Add this line after initCCP
connect.core.initSoftphoneManager({allowFramedSoftphone: true});
This would allow your page to handle softphone call with the connect-rtc-js loaded by your page. allowFramedSoftphone is necessary if your page also lives in a frame, otherwise you can remove that parameter.
Add this HTML element to your web page
<audio id="remote-audio" autoplay></audio>
amazon-connect-streams library will look for this element and inject it into connect-rtc-js so that connect-rtc-js can play downstream audio through this element.
Amazon Connect connect-rtc-js
connect-rtc.js provides softphone support to AmazonConnect customers when they choose to directly integrate with AmazonConnect API and not using AmazonConnect web application. It implements Amazon Connect WebRTC signaling protocol and integrates with browser WebRTC APIs to provide a simple contact session interface which can be integrated with Amazon Connect StreamJS seemlessly.
Usage
Prebuilt releases
In the gh-pages branch prebuilt ready to use files can be downloaded/linked directly.
Working with GitHub registry for Omnissa
Ensure this step is followed before running
npm installPlease refer to this GitHub article to authenticate your project and use our public registry.
You will need to create a github token and either authenticate directly or use/create an .npmrc file within your project. An example .npmrc file is as follows:
Build your own
git clone https://github.com/aws/connect-rtc-js.gitcd connect-rtc-jsnpm installgruntnpm testgrunt demoAmazon Connect StreamJS integration
In a typical amazon-connect-streams integration, connect-rtc-js is not required on parent page. Softphone call handling is done by embedded CCP.
However the following steps could further customize softphone experience.
allowFramedSoftphone: falseThis would stop embedded CCP from handling softphone callconnect.core.initSoftphoneManager({allowFramedSoftphone: true});This would allow your page to handle softphone call with the connect-rtc-js loaded by your page. allowFramedSoftphone is necessary if your page also lives in a frame, otherwise you can remove that parameter.<audio id="remote-audio" autoplay></audio>amazon-connect-streams library will look for this element and inject it into connect-rtc-js so that connect-rtc-js can play downstream audio through this element.remote-audioelement