{"_id":"@ckarthik114/connect-rtc","name":"@ckarthik114/connect-rtc","dist-tags":{"latest":"1.1.23"},"versions":{"1.1.23":{"name":"@ckarthik114/connect-rtc","version":"1.1.23","description":"Amazon Connect softphone library","license":"Apache-2.0","main":"./src/js/connect-rtc.js","authors":{"name":"Amazon Web Services","email":"","url":"http://aws.amazon.com/"},"homepage":"https://github.com/aws/connect-rtc-js","contributors":[{"name":"Yuliang Zhou","email":"yuliangz@amazon.com"},{"name":"Anil Kumar Vuta","email":"anilvuta@amazon.com"}],"scripts":{"preversion":"git stash && git checkout master && git pull && npm test && git checkout -B bumpVersion","version":"grunt build && grunt copyForPublish && git add package.json release/* ","postversion":"export GITTAG=\"echo $(git describe --abbrev=0 --tags | sed 's/^v//')\" && git push --force --set-upstream origin bumpVersion --follow-tags && git checkout gh-pages && git pull && cp out/connect-rtc-debug.js ./connect-rtc-debug-`$GITTAG`.js && cp out/connect-rtc.min.js ./connect-rtc-`$GITTAG`.min.js && ln -fs connect-rtc-debug-`$GITTAG`.js connect-rtc-debug-latest.js && ln -fs connect-rtc-`$GITTAG`.min.js connect-rtc-latest.min.js && git add connect-rtc*.js && git commit -m `$GITTAG` && git push --set-upstream origin gh-pages && git checkout master","prepublish":"grunt build","test":"grunt && nyc --reporter=html mocha --compilers js:babel-core/register test/unit"},"dependencies":{"@citrix/ucsdk":"2.0.5","uuid":"^3.0.1","webrtc-adapter":"^6.4.0"},"engines":{"npm":">=3.10.0","node":">=6.0.0"},"devDependencies":{"babel-plugin-transform-runtime":"^6.23.0","babel-polyfill":"^6.23.0","babel-preset-env":"^1.3.2","babelify":"^7.3.0","chai":"^3.5.0","chromedriver":"^2.28.0","eslint-config-webrtc":"^1.0.0","faucet":"0.0.1","geckodriver":"^1.12.1","grunt":"^1.5.3","grunt-browserify":"^5.3.0","grunt-cli":"^1.0.0","grunt-contrib-clean":"^1.0.0","grunt-contrib-connect":"^1.0.2","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^2.2.1","grunt-contrib-watch":"^1.1.0","grunt-eslint":"^21.0.0","grunt-githooks":"^0.6.0","grunt-replace":"^2.0.2","mocha":"^3.2.0","nyc":"^15.1.0","selenium-webdriver":"^3.3.0","sinon":"^2.1.0","tape":"^4.6.3","travis-multirunner":"^3.1.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/ckarthik14/connect-rtc-js.git"},"author":{"name":"Amazon Web Services"},"bugs":{"url":"https://github.com/racker/connect-rtc-js/issues"},"gitHead":"1b451d8461a412fa514b202a4c750aa6be2610b6","_id":"@ckarthik114/connect-rtc@1.1.23","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UODcQiemDNxVs68a25r8Cg4Hyz1AF6wtIoMnLeMjlyGvmTqEfrA0z3ioNTLrl4/Iv0TK3UyaW4zUuAQaVErODA==","shasum":"ef664a8cf66b5be9def2ed776d5f54ab03737f74","tarball":"https://registry.npmjs.org/@ckarthik114/connect-rtc/-/connect-rtc-1.1.23.tgz","fileCount":38,"unpackedSize":3098978,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJLVZMvGrzAn6rKlHQSMcRGSg9qu0hiaWESYXhdBMwlAiEAn8pfDMrwItBpkiZcP35KCb/+WG0PfWrz6krbu12THPA="}]},"_npmUser":{"name":"ckarthik114","email":"ckarthik114@gmail.com"},"maintainers":[{"name":"ckarthik114","email":"ckarthik114@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-rtc_1.1.23_1712812179849_0.6781600077607421"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-11T05:09:39.707Z","1.1.23":"2024-04-11T05:09:40.105Z","modified":"2024-04-11T05:09:40.375Z"},"maintainers":[{"name":"ckarthik114","email":"ckarthik114@gmail.com"}],"description":"Amazon Connect softphone library","homepage":"https://github.com/aws/connect-rtc-js","repository":{"type":"git","url":"git+https://github.com/ckarthik14/connect-rtc-js.git"},"contributors":[{"name":"Yuliang Zhou","email":"yuliangz@amazon.com"},{"name":"Anil Kumar Vuta","email":"anilvuta@amazon.com"}],"author":{"name":"Amazon Web Services"},"bugs":{"url":"https://github.com/racker/connect-rtc-js/issues"},"license":"Apache-2.0","readme":"[![Build Status](https://travis-ci.org/aws/connect-rtc-js.svg)](https://travis-ci.org/aws/connect-rtc-js)\n\n# Amazon Connect connect-rtc-js #\n**connect-rtc.js** provides softphone support to AmazonConnect customers when they choose to directly integrate with AmazonConnect API and not using AmazonConnect web application.\nIt 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](https://github.com/aws/amazon-connect-streams) seemlessly.\n\n## Usage ##\n### Prebuilt releases\nIn the [gh-pages branch](https://github.com/aws/connect-rtc-js/tree/gh-pages) prebuilt ready to use files can be downloaded/linked directly.\n### Build your own\n1. Install latest LTS version of [NodeJS](https://nodejs.org)\n2. Install [Grunt](https://gruntjs.com/)\n3. `git clone https://github.com/aws/connect-rtc-js.git`\n4. `cd connect-rtc-js`\n5. `npm install`\n5. To build:\n    1. `grunt`\n    2. Find build artifacts in **out** directory\n6. To run unit tests:\n    1. `npm test`\n7. To run demo page:\n    1. `grunt demo`\n    2. Open the URL printed out by connect task, it looks like \"Started connect web server on <https://localhost:9943>\"\n    3. Click **demo** folder\n\n## Amazon Connect StreamJS integration ##\nIn a typical [amazon-connect-streams](https://github.com/aws/amazon-connect-streams) integration, connect-rtc-js is not required on parent page. Softphone call handling is done by embedded CCP.\n\nHowever the following steps could further customize softphone experience.\n1. Load connect-rtc-js along with amazon-connect-streams on parent page\n2. Following [amazon-connect-streams instructions](https://github.com/aws/amazon-connect-streams/blob/master/README.md) to initialize CCP\n3. Replace the softphone parameter (within the second parameter of ***connect.core.initCCP()***) with\n    `allowFramedSoftphone: false`\n    This would stop embedded CCP from handling softphone call\n4. Add this line after initCCP\n    `connect.core.initSoftphoneManager({allowFramedSoftphone: true});`\n    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.\n5. Add this HTML element to your web page\n    `<audio id=\"remote-audio\" autoplay></audio>`\n    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.\n6. Customize it (some ideas below)\n    * Customize audio device for `remote-audio` element\n    * Look at all the documented APIs in [RtcSession](https://github.com/aws/connect-rtc-js/blob/master/src/js/rtc_session.js) class, modify [softphone.js](https://github.com/aws/amazon-connect-streams/blob/master/src/softphone.js) as you need\n    * Revert step 4, add your own glue layer between amazon-connect-streams and connect-rtc-js (use [softphone.js](https://github.com/aws/amazon-connect-streams/blob/master/src/softphone.js) as a template)\n","readmeFilename":"README.md"}