The goal of this document is to help you work through the various phases of a builder's journey using the Amazon Chime SDK. These follow the Amazon Chime SDK Builder's Journey path:
Phase | Action | Gate |
---|---|---|
Awareness | Learn about Audio / Video offerings and what's possible | |
Discovery | Considering options against business outcomes, defining requirements, comparing providers | POC Readiness Review |
Tech POC | POC – Validating that key features and functionality will work for a given application | POC Results Review |
Business Decision | After reviewing the POC results, decides whether to move forward | Application Readiness Review |
Pilot | Build and deploy a MVP for limited users including features for Monitoring, Notification and Troubleshooting | Production Readiness Review |
Production | Ramp up availability to all users in one Group (e.g. Geo, Line of Business, etc.) | Deployment |
Expansion | Add other Group users, add additional functionality |
To develop applications using the Amazon Chime SDK for JavaScript you will need to be a proficient JavaScript and / or TypeScript programmer. For mobile development you will need to be a proficient Kotlin or Swift programmer familiar with programming for the iOS or Android platforms. Refreshers for each can be found here:
- JavaScript Tutorial
- TypeScript Tutorial
- Create a Basic Webpage with CSS and JavaScript
- Android Tutorial (Android Basics Section)
- iOS Tutorial
To use the demos in this document, you will need an AWS Account and may need access to the Cloud9 development environment along with the authorization to create Lambda functions and API gateways.
The Amazon Chime SDK provides a rich set of APIs and example code that enables customers to build modern communication applications that easily interface to other AWS services, including Connect, Pinpoint, Lex, Polly, Transcribe, and others. The Amazon Chime SDK has three key pillars:
- Meetings, including audio/video via browser (WebRTC), iOS, or Android
- Messaging
- PSTN Audio, including SIP Trunking
The Amazon Chime SDK makes it easy to add collaborative audio calling, video calling, screen share, messaging and Public Switched Telephone Network (PSTN) features to web applications by using the same infrastructure services that power millions of Amazon Chime online meetings. However, while they share some of the same backend services, it is distinct and separate from the Amazon Chime Application. The Amazon Chime Application provides a complete application for real-time communications. It's functionality and user interface (UI) is fixed and cannot be customized. The Amazon Chime SDK is a Software Development Kit that lets you build your own custom web or mobile application with full control of the user experience and UI. The following pages can help you understand the two distinct services:
The Amazon Chime SDK makes it easy to build collaborative audio/video calling, and screen share capabilities. These can span web and mobile applications as well as audio over regular phone calls. This all uses the same infrastructure services that power millions of Amazon Chime online meetings. The Amazon Chime SDK is comprised of number of services and components, including:
-
Amazon Chime SDK Meetings – The Meetings feature of the SDK allows you to create and delete meetings, create and delete attendees as well as add and remove attendees from a meeting.
-
Amazon Chime SDK for JavaScript- core code to support building web-based collaboration apps
-
Amazon Chime SDK for iOS - core code to support building iOS-based collaboration apps
-
Amazon Chime SDK for Android - core code to support building Android-based collaboration apps
-
Amazon Chime SDK Messaging – The Messaging feature of the SDK allows you to create persistent messaging applications that can exist either within or outside of a meeting. Click here for more details.
-
Amazon Chime SDK for PSTN Audio – The PSTN feature of the SDK supports a number of functions but the ones we will be focused on will be those that relate to meetings including Inbound Calling and Outbound Calling. Click here for more details.
For more information on the Amazon Chime SDK offering see:
- Amazon Chime SDK Website
- Amazon Chime - Customers
- Amazon Chime SDK Features - Meetings, Messaging, PSTN, and Media Pipelines
- Amazon Chime SDK Partners
- Chime SDK Pricing
- Customer Stories
- Customers like Slack choose the Amazon Chime SDK for real-time communications
- How Cerner uses the Amazon Chime SDK to enhance its virtual health strategy
- Delivering Video at Scale in Mobile and Web Applications with Orangetheory Fitness
- Beth Israel Deaconess
Amazon Chime SDK can be extended using a number of AWS services including Transcribe, Connect, SMA, media capture as shown in the following:
- Build a video contact center with Amazon Connect and Amazon Chime SDK
- Video Help Desk
- Amazon Chime SDK to power video for new Salesforce Anywhere application
- Visual voicemail SMA example
- Real-Time Transcription with Amazon Chime Voice Connector
- PSTN dial-in for Amazon Chime SDK with Amazon Chime SIP Media Application
- Whiteboarding
- AI-powered Speech Analytics with Amazon Chime Voice Connector
- Building a PSTN call answering system with the Amazon Chime SDK, Amazon Lex and Amazon Polly
Applications built with Amazon Chime SDK can be new or an expansion of existing applications. They can add video / audio, messaging and/or PSTN calling to an existing web page or mobile app. They can be used for Telemedicine, Remote Learning, Remote Assistance, Virtual Events, Unified Communications, Gaming, and Retail.
The Amazon Chime SDK Customers page provides a list of Industries that use Amazon Chime SDK.
If you are building a collaboration app (standalone or integrated into an existing application) then you will at least need to work with Amazon Chime SDK meetings. Depending on your target platform, you may need to use various other components. If your application needs to run in a web browser, you will need the Amazon Chime SDK for JavaScript. If your application supports mobile devices, you will need the Amazon Chime SDK for iOS and/or Android. If your application needs to support the ability to collaborate by dialing a phone number or across the PSTN, you will need to include the Amazon Chime SDK for PSTN Audio. These all work by connecting to meeting session resources that you create dynamically in your AWS account.
The Amazon Chime SDK for JavaScript 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.
The Amazon Chime SDK for JavaScript works by connecting to meeting session resources that you have created in your AWS account. Built on top of WebRTC, the Amazon Chime 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. For additional information, please see:
- Tutorial - Workshop Studio – Building with Amazon Chime SDK
- WebRTC Tutorial
- SDK Tech Talk:https://www.youtube.com/watch?v=v9KFalEv6gw
- SDK Video:https://youtu.be/lNQ1_WfUQl4
- Amazon Chime SDK for JavaScript Overview
- Getting Started
- Frequently Asked Questions
- Amazon Chime SDK FAQ (Web Page)
- Amazon Chime SDK FAQ (GitHub)
- Amazon Chime SDK Guides(Please review each document in this list)
- A Builder's Guide to Amazon Chime sessions atre:Invent 2019
- Serverless Demo
- Developer Guide
AWS has service quotas (previously call service limits) to help prevent accidental provisioning of more resources than needed and to help ensure availability of AWS resources.
For each AWS account there are hard limits that cannot be adjusted and soft limits which can be adjusted:
Hard limits:
- 250 users per session
- 100 video sources on simultaneously
- 25 tiles displayed simultaneously
Soft Limits (can be adjusted):
- 250 simultaneous Amazon Chime SDK meetings per AWS Account
- Adjustments can be requested via the Amazon Chime Service Quota Dashboard.
Note: Adjusting the Active Amazon Chime SDK meetings per account will cause the "All meeting management API requests limit" and the "All meeting management API requests rate limit in transactions per second" to be automatically adjusted as well
Additionally, the Amazon Chime SDK has limits on meeting length to protect against abandoned meetings. A meeting will automatically end under the following conditions:
- Call to the DeleteMeeting API
- 5 minutes with nobody in the meeting (primary meetings only)
- primary meeting has ended (replica meetings only)
- 30 minutes with one person in the meeting (old Chime namespace only)
- 24 hours with one person in the meeting (new ChimeSDKMeetings namespace only)
- 6 hours with 2 or more attendees but no detected audio
Messaging quotas can be found here: https://docs.aws.amazon.com/chime-sdk/latest/dg/using-the-messaging-sdk.html.
Amazon Chime SDK is dependent on the supported features of various browsers to be able to function. Therefore, there are only certain browsers and operating system we support. The current list of supported browsers and their versions can be found in the Amazon Chime SDK FAQs under "General Heading Q: What browsers does the Amazon Chime SDK for JavaScript support?".
We do not specify hardware requirements because they are dependent on the requirements of the application and are therefore left up to the you to determine. It is important that the you make a determination based on testing with your application so they can advise your users of the hardware requirements for your application.
The Amazon Chime SDK consists of Control Planes and a Media Planes. The control plane is used to set up a meeting and the medial Plane is where the meeting actually happens. The available regions for each can be found in https://docs.aws.amazon.com/chime-sdk/latest/dg/sdk-available-regions.html. Additional information and guidance on selecting a region can be found here: https://docs.aws.amazon.com/chime-sdk/latest/dg/chime-sdk-meetings-regions.html.
Amazon Chime SDK Messaging can be used to add massively scalable messaging capability to your application. This may be in the context of a meeting, but it does not need to be. Amazon Chime SDK Messaging is a service that can be used independently from the other components of the SDK.
Amazon Chime SDK PSTN Audio enables integration with common telephony interfaces including PSTN phone numbers and SIP Trunks. This allows you to build applications that use audio from phone calls, either in the context of a meeting or not. SIP Trunks allow you to integrate directly with your on-premise PBX under programmatic control. You can provision Amazon Chime SDK managed phone numbers in the US and other countries. Using the SIP Media Appliance (SMA) managed object and SIP rules you can associate events that occur on phone line with a lambda function that you write. The lambda function instructs the PSTN Audio Service what actions to take on the phone call: connect to a meeting, play an audio file, record audio from the caller, collect pressed STMF digits, etc. More sophisticated examples include integrating with other Amazon AWS services such as Lex, Polly, Transcribe, etc.
When in an Amazon Chime SDK Meeting, it is often helpful to allow users to call into a meeting with their desk or mobile phone. It lets you do much more but this document will focus on the call-in capabilities. The following document provides the details about using the Amazon Chime SDK PSTN Audio feature:
This blog explains how to add a PSTN caller to an Amazon Chime SDK meeting:
Tutorial - This workshop is a good introduction to Amazon Chime SDK PSTN Audio:
There are many demos for Amazon Chime SDK features you can run in your own environment. Below are the key demos for each platform:
Amazon Chime SDK | Feature | Demo Resources |
---|---|---|
JavaScript | Meetings Web | BlogDemo InstructionsSource Code |
Messaging | TBD | |
React | Meetings Web | Demo InstructionsSource Code |
Messaging | BlogDemo InstructionsSource Code | |
iOS* | Meetings | iOS and Android OverviewBlog |
Messaging | Blog | |
Android* | Meetings | iOS and Android OverviewBlog |
Messaging | Blog | |
PSTN / SMA | Inbound Calling | BlogDemo Code |
*Requires access to compatible iOS or Android hardware
According to the Meriam Webster Dictionary a Proof of Concept is "something that demonstrates the feasibility of a concept". An Amazon Chime SDK POC is usually designed to help validate that core goals can be met using the Amazon Chime SDK. It is not generally a full-blown application and is not usually deployed to the masses but is tested and verified by a small subset of folks, often just within IT.
It is important that you what your goals are. You document what they are trying to accomplish in the POC in the POC Readiness Review. In this review, you and AWS review the timelines, success criteria, and expectations.
You would hold a POC Readiness Review with the Amazon Chime SDK SA, TAM and the Account Team before starting to develop for the POC. Here's some examples of things you will want to document in a POC Readiness Review:
- What are you hoping to accomplish?
- Who is the owner for the POC?
- Who are the developers?
- Is a Partner needed?
- What is the POC Minimum Viable Product?
- Architecture?
- Timeline?
- Start date
- End date
- How will you measure success?
There is a base knowledge level needed to build an Amazon Chime SDK application. First, you will need to choose the framework you will use, HTML w/ JavaScript (no framework or any framework other than React) or the React framework. For mobile devices (Android and iOS) you can choose to use the same Web-based application or create native apps. In general, new features and functionality come out first in the JavaScript version followed by the React version often several weeks later. However, using the built-in React components can mean less development effort and faster time to market.
To understand how to get a basic video and audio application working in JavaScript please review the following links. Pay particular attention to the "Building a Meeting Application using the Amazon Chime SDK with JavaScript" blog and the workshop. These documents help you to understand the options for Participant Layout Control, how to construct a Roster and detect the active speaker.
- GitHub Repository
- API Overview
- Getting Started
- Building a Meeting Application using the Amazon Chime SDK with JavaScript
- Mute / Unmute
- Participant Layout control
- Subscribe to an Active Speaker Detector
- Roster
To understand how to get a basic video and audio application working in JavaScipt with Reacct, please review the following links. Pay particular attention to the "Building with Amazon Chime SDK Using React" workshop. It will help you understand how a basic Amazon Chime SDK application is constructed, and build an Amazon Chime SDK React application. The documents will also help you understand the options for Participant Layout Control, how to construct a Roster and detect the current Active Speaker.
- GitHub Repository
- Getting Started
- This Hands-on Workshop creates a working React Amazon Chime SDK Web App
- Here is a third-party article about building with the Amazon Chime SDK
- Mute / Unmute
- Participant Layout control
- Highlight Current Speaker
- Roster
- Amazon Chime SDK Smart Video Sending Demo
You can choose to create native apps for Android and iOS. Run through the demo apps and workshops below to see what examples of what can be done:
- Introducing the Amazon Chime SDKs for iOS and Android
- Building a Meeting Application on iOS using the Amazon Chime SDK
- Building a Meeting Application on Android using the Amazon Chime SDK
- WKWebView and Webview(embedding Amazon Chime SDK JavaScript into a mobile app)
An important consideration for the user experience is the layout of the display. This document walks you through the more common layouts and how to implement them with JavaScript and React: Managing Video Quality for Different Video Layouts. It will help you get it right the first time.
The Amazon Chime SDK allows you to show up to 25 video tiles and resolution up to 720p. However, you will not be able to show 25 video tiles at the highest resolution because of CPU and bandwidth limitations. Current guidance is to only show 4 720p tiles on a screen. A client's CPU, bandwidth and the resolution of the tiles will affect how many tiles their device can display. Finally, the SDK can make some automated adjustments of the transmitted video resolution based on the number of participants with video turned on. Additional guidance can be found in "Quality, Bandwidth and Connectivity".
Because there are a number of ways to implement authentication and authorization (including no authentication), Amazon Chime SDK provides a way your server side application can control who can attend a meeting. When an attendee joins a meeting, they are given a join token. That join token is what allows them to get and send the media. The primary way to control who gets a join token is via your server-side app. The links below provide additional information.
- How do users authenticate into a meeting?
- Understanding Security in the Amazon Chime Application and SDK
- Identification and Authorization
Up until now we have been focused on getting into meetings and starting a meeting with voice, video and screen sharing. Now let's look at things that can be added to further enhance the meeting experience.
In addition to the main meeting, you may want to hold attendees in a Waiting Room until a certain number of attendees join or until the presenter joins. This is often just implemented as a web page that then automatically moves them to the main meeting at the appropriate time, or when a particular dataMessage is received.. Breakout rooms allow a presenter or administrator to create meetings for a subset of the attendees in the main meeting for smaller group discussions. These are just additional meetings with people moved to / from the main meeting. If you need to have separate groups of audio or video an attendee can choose from (multiple languages, more than 100 video sources), it is possible to join multiple meetings simultaneously. Please read through the additional information in the links below.
If you want to record a meeting, there are multiple ways of doing it with the Amazon Chime SDK. The client can have recording built-in so that it records directly to the local client's hard drive. This has the advantage of being easy but can take up a lot of room on the hard drive and presents an additional local CPU load which can cause audio and video problems for larger meetings. The second method is to have a remote app you deploy join the meeting and record whatever a browser sees in the meeting (see the Recording Demo). You are responsible for running the infrastructure but the output is a simple, single MP4 video file in an S3 bucket. Finally, you can use the Media Capture API to have the system (in the cloud) join your meeting. You can then record just the active speaker or 1 to all individual video streams and mixed audio in the meeting. Each stream is captured in 5 second chunks to allow for near real-time AI/ML processing of the video and audio. This means that you will have to stitch these chunks back together to reconstitute the whole stream. This also means that if you want to get all of the video into a single MP4 file, you will have to do the processing to create a composite video of all of the individual MP4 files. You can set up and run each of the recording options so you can experience the differences.
The Messaging API of the Amazon Chime SDK can be using with or completely independent of a Meeting. The following blog shows an example of a basic Messaging application. Deploy it and run it to become familiar with its capabilities.
Sometimes you want to use your own identity provider. Read through this blog to learn how:
With the Amazon Chime SDK, it is possible to process the image from the camera before sending it on to the meeting. There is a lower-level set of APIs for doing your own video processing of a video frame and higher-level APIs for adding background blur or for replacing the entire background image. Read through the first two Video Processing API papers to get an understanding of what it can do and set up and run the demo in the "Blur your Background and Suppress Noise" blog.
- Video Processing APIs
- Chime Video Processing API's GitHub Repo
- Blur your Background and suppress noise
Users can call to/from meetings from the Public Switched Telephone Network (PSTN) using a desk phone or mobile phone. They can also build stand-alone PSTN apps that can dynamically route calls based on user (DTMF), database, or AI/ML data. Review the links below to become familiar with the techniques and capabilities:
- Updating an In-Progress Amazon Chime SIP Media Application Call
- Amazon Chime SDK PSTN Audio Sample Call Flow
- PSTN dial-in for Amazon Chime SDK with Amazon Chime SIP Media Application
- Building a Click-To-Call Application with Amazon Chime SDK (Meeting Outbound dialing)
- Building Telephony-Powered Applications with the Amazon Chime SDK PSTN Audio Service
- Amazon Chime Click-To-Call Starter Project
- Amazon Chime SDK PSTN Audio Workshop
The following React Native demo will show how you can integrate the Amazon Chime SDK with a React Native application.
Note: This is a limited function demo. Many times, folks wanting to use this demo are looking for a way to create an Amazon Chime SDK application without having to know the underlying iOS or Android environment. If they find that the functionality they want to implement is not in the demo, they will have to go into the native application to implement it.
A popular use case for the Amazon Chime SDK is building a remote classroom application. Read through this blog and deploy the demo application below:
You can build a live events platform with Amazon Chime SDK at its core. The SDK provides a space for the interactive portion while IVS (or other Broadcast Service) provides one-way distribution to over 100,000 users. Review the demos below. Deploy and use "Amazon Chime Meeting Broadcast Demo" to test this capability.
- Amazon Chime Meeting Broadcast Demo
- How to deploy a live events solution built with the Amazon Chime SDK
- Town Hall/Webinar sample application
- CareMonitor Scales Telehealth and Remote Patient Monitoring Platform with AWS
- Embed Healthcare Appointment Scheduling Widget with the Amazon Chime SDK
Testing is one of the most important steps in developing an app for the Amazon Chime SDK. Because each application provides a unique combination of bandwidth and CPU loads, it is necessary to test the hardware and bandwidth configurations you plan to support.
- Test a range of supported devices (current and older): Windows, Mac, iOS, Android, Chromebook. Will you support a 5 year old Chromebook? If so, you need to test it.
- Test on all supported browsers (see https://aws.amazon.com/chime/chime-sdk/faq/)
- Test with heavy CPU load
- Test with bandwidth constraints
In order to proceed there must be a valid business case that justifies the continued effort required to build a production Amazon Chime SDK meetings application. Review the results of the POC, decide if it is worth proceeding and establish requirements and goals for the next phase, Pilot deployment.
A POC Outcome Review documents how your application performed against the POC goals and timelines. You would hold a POC Outcome Review when a the POC is complete. The purpose of the review is to decide if the POC shows you can proceed to a larger Pilot Deployment. Here are some of the things you should examine
- Who is the owner for the Pilot?
- Who are the developers?
- Is a Partner needed?
- What is the Pilot Minimum Viable Product?
- Be sure to include any new operations requirements
- Architecture?
- Understand line of business impacts
- Success metrics and expectations
- Pricing questions and understanding
- Deployment plan and needed support (marketing awareness)
- Timelines for launch, ramp period to peak, growth expectations
- Known usage patterns or spikes
Once you have decided to build a Pilot application you may need to add additional functionality. Some will be functionality listed above in the POC section. Often, you will need to add functionality to make the application more supportable as listed below. When you have your MVP complete for the Pilot launch, it is time for an Amazon Chime SDK Application Review.
There are a number of environmental issues that can impact the performance of an Amazon Chime SDK application including the device CPU and bandwidth it is running on. Please review the following document for guidance on how best to identify when you are having issues, the causes and how to mitigate them:
For a POC, you may be able to do without much in the way of logging or monitoring for the application (though it can still help if you run into issues). When going into production, it is very important to be able to collect logs for each call so that you can try to find the cause of a user's issue. The server-side events (Meeting created /deleted, Attendee added / deleted, and Attendee joined / left / dropped) should be logged at a minimum. The following blogs walks you through logging server-side events in CloudWatch and setting up a simple dashboard for them:
This next blog talks about adding client-side events to CloudWatch:
- Monitoring and troubleshooting with Amazon Chime SDK meeting events |...
- Automating Amazon Chime with EventBridge - Amazon Chime
These slide decks provide some guidance for troubleshooting:
The application review is a guided conversation about your meeting service (back end) and meeting application (front end) usually conducted by an Amazon Chime SDK SA. It is intended to identify potential major issues, discover anti-patterns, and share best practices in the context of the your solution. It is not a comprehensive code review.
Beyond your application, a Well Architected Review looks at Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization and Sustainability of the deployed resources as well and is worth considering. It is typically conducted by the Account SA.
Any required changes from the Application Review would need to be implemented then the Amazon Chime SDK application can be deployed. The Pilot deployment should have defined goals to meet for time and thresholds for expanding the deployment to Production. If the you have Enterprise Support or Business Support (with an additional charge), you should work with the TAM to determine if an IEM (Infrastructure Event Management) engagement would be helpful. Note that an IEM is typically planned 6-8 weeks in advance but shorter-term IEM's can sometimes be accommodated if needed.
Prior to expanding the Pilot into Production, any issues discovered in Pilot will have to be triaged and those that are show stoppers, fixed. A Production Readiness Review is a formal meeting with the you, the Account team, the TAM, the Sales Specialist and Specialist SA to assess the readiness to expand the deployment into Production. This expansion is sometimes limited to a specific geography or set of users but usually represents a significant portion of the planned usage.
A Production Readiness Review helps you document your goals and timelines. You would hold a Production Readiness Review when the Pilot is complete and you are ready to support a production workload. You will need to consider the following for a Production Readiness Review:
- Review Pilot Results / Issues
- Review launch date, ramp period to peak, growth expectations
- Review known usage patterns or spikes
- Expected service team support
After The Production Readiness Review, the application can be opened up to additional users. Ideally this would be a phased roll-out of a short time-period while watching for load related issues.
After launch, it would be good to assess what went well and where there were issues. It would be a good time to review your usage and metrics and bring seek suggestions for optimizing your utilization, quota utilization, infrastructure, expansion on your application functionality, and improvements in operational metrics. It would also be a good time to have an NDA Roadmap discussion with the Specialist SA so they can plan for any new features that are coming out in the near future.
- Getting Started Guides
- AWS glossary - AWS General Reference
- Support Technology and Programs
- Amazon Chime SDK FAQs
- https://github.com/aws/amazon-chime-sdk-js/tree/main/guides
- Making Amazon Chime SDK an installable Windows or Mac App