Controller Generator - Generator to create customizable meetings and attendees controllers in your Rails application.Controller Templates - Mixin module implementation for meetings and attendees controllers.Meeting Coordinator - Wrapper client module of AWS SDK for Ruby, which simulates AWS SDK for JavaScript to communicate with Amazon Chime SDK client implementation by JSON format.Amazon Chime SDK provides client-side implementation to build real-time communications for your application, and amazon-chime-sdk-rails enables you to easily add server-side implementation to your Rails application.Īmazon-chime-sdk-rails supports both of Rails API Application and Rails Application with Action View. We create a dropdown of available devices so that the user can choose which devices they want to publish with.Amazon-chime-sdk-rails brings server-side implementation of Amazon Chime SDK to your Ruby on Rails application. This is synonymous to the process of publishing in most WebRTC applications. To join, we first have to configure an Audio and Video device with Chime. They will be used repeatedly to set up the call. Keep an eye out for the meetingSession and audioVideo objects. etingSession = new DefaultMeetingSession(configuration, logger, deviceController) This will be responsible for controlling most of the call actions, like so: const deviceController = new DefaultDeviceController(logger) Ĭonfiguration.enableWebAudio = this.enableWebAudio Ĭonfiguration.enableUnifiedPlanForChromiumBasedBrowsers = this.enableUnifiedPlanForChromiumBasedBrowsers Ĭonfiguration.enableSimulcastForUnifiedPlanChromiumBasedBrowsers = this.enableSimulcast We will now use this configuration object to initialize our meetingSession. In this block of code, the response from await this.joinMeeting() is the object we generated on the server. const chime = new AWS.Chime(`, url.toString()) If you get errors here, please check your AWS credentials and roles. We will now discuss the core functionality of the sample application provided by the Chime SDK.įirst, we need to initialize the SDK. Make sure you set these environment variables with your credentials: export AWS_ACCESS_KEY_ID= Now, we have to initialize our AWS credentials. If you don’t already have Node and NPM installed, use this link. Please make sure you satisfy the following prerequisites to build, test, and run these demos from source: Perfect! Now change directory into the demos/browser folder: cd demos/browser Pre-requisites But for now, we’ll just work with demo code. The SDK can also be added as a dependency to your own project. Let’s get into it! First things firstįirst and foremost, we need to clone the Chime’s SDK github repository as it contains a couple of demo applications for us to work with. In this post, we will go through setting up a simple videoconferencing app with the Amazon Chime SDK and explore some of the core functionality. This will allow customers to easily build their own real-time communication apps with Amazon’s infrastructure as the backbone. Now AWS is offering SDK’s and API’s for their pre-existing Amazon Chime video conferencing application. The pandemic has forced the big players in cloud computing to offer communication services, of which arguably the biggest is Amazon with their Amazon Web Services platform.
0 Comments
Leave a Reply. |