The Amazon Chime SDK makes it easy to add collaborative audio calling, video calling, and screen share features to web applications by using the same infrastructure services that power millions of Amazon Chime online meetings.
This Amazon Chime SDK for JavaScript works by connecting to meeting session resources that you have created in your AWS account. The SDK has everything you need to build custom calling and collaboration experiences in your web application, including methods to: configure meeting sessions, list and select audio and video devices, start and stop screen share and screen share viewing, receive callbacks when media events occur such as volume changes, and control meeting features such as audio mute and video tile bindings.
To get started, see the following resources:
- Amazon Chime
- Amazon Chime Developer Guide
- Amazon Chime SDK API Reference
- JavaScript Client SDK Documentation
And review the following guides:
To build, test, and run demos from source you will need:
- Node 10 or higher
- npm 6.11 or higher
To add the Amazon Chime SDK for JavaScript into an existing application, install the package directly from npm:
npm install amazon-chime-sdk-js --save
To run demo applications see the README.md file
in the demos/browser folder. To run the meeting
application
demo locally:
-
Ensure you have AWS credentials configured in your
~/.aws
folder for a role with a policy allowingchime:CreateMeeting
,chime:DeleteMeeting
, andchime:CreateAttendee
. -
Change to the
demos/browser
folder:cd demos/browser
-
Start the demo application:
npm run start
-
Open http://localhost:8080 in your browser.
You can deploy any of the demos as self-contained serverless applications. Note: deploying the serverless demo may incur extra charges in your AWS account.
The following will create a CloudFormation stack containing a Lambda and
API Gateway deployment that runs the meeting
demo.
cd demos/serverless
node ./deploy.js -r us-east-1 -b <my-bucket> -s <my-stack-name> -a meeting
The script will create an S3 bucket and CloudFormation stack with Lambda and API Gateway resources required to run the demo. After the script finishes, it will output a URL that can be opened in a browser.
npm run build
npm run test
After running npm run test
the first time, you can use npm run test:fast
to
speed up the test suite.
To view code coverage results open build/coverage/index.html
in your browser
after running npm run test
.
To generate JavaScript API reference documentation run:
npm run build
npm run doc
Then open docs/index.html
in your browser.
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page. Please do not create a public GitHub issue.
Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.