Twilio JS SDK Quick Migration
Last updated
Was this helpful?
Last updated
Was this helpful?
Welcome to Whereby! We're excited to showcase what it can look and feel like partnering with a team that is completely focused on video. We've spent the last 10 years building our product to be the best the web has to offer for WebRTC calls and we're confident our delightful design, approachable API, and global infrastructure will prove to make you and (maybe more importantly) your customers lives better.
For this migration, you'll be utilizing our to integrate Whereby rooms into your platform. While this is likely different than your existing Twilio setup, it requires significantly less code and design time as it leverages Whereby's existing PWA and our UI/UX.
It may not offer the complete customization you'd initially be looking for, but we've collaborated with customers that have made this migration in a matter of days instead of weeks. After you've got a 1.0 launch with Whereby under your belt, you can start considering a more custom integration method utilizing our
Install SDK via NPM or CDN
Create a
Create an API key in the "configure" section of your dashboard
Create a room with API or dashboard
When using React or a bundler like Webpack, Rollup, Parcel, etc
Or access the code via our CDN and add a script
tag in your sites head.
You can use a hostRoomUrl
instead of the roomUrl
, if you want to give the user host privileges
From the Configure section of the dashboard, select Generate Key
endDate
is the only required property and is interpreted as UTC by default, but other time zones are supported by including an offset in hours and minutes. For example, Eastern Standard Time (EST) would be expressed as 2099-08-11T07:56:01-05:00
.
Rooms are fully functional from the time they are created.
Request Examples
After you've installed the Web Component and created your rooms, you can begin customizing the room experience to your liking.
When leveraging Whereby's pre-built experience, there are multiple portions of Twilio's SDK that you receive out of the box as part of the rooms being generated:
Create roomUrl's via
Sign up for a account
Once you have created your API key, you can create a room by sending an HTTP request with the necessary properties in the body. Available properties and formats can be found in the . Some features like the URL pattern of the room name and room size (roomMode
) can only be set during the meetings creation.
-> Built in as part of our pre-call waiting room experience. Users are prompted to provide cam and mic access, and can manage I/O devices as they see fit. Enable pre-call review globally via the features section of your dashboard, or on a per room basis with the
& -> This logic is handled for you in our PWA and pre-call experience. Based on the lock status of the room, they will either have the option to "join meeting" or "knock". Set "isLocked": true
in the body of your API request to require your participants to knock. Then provide your , speakers, doctors, etc with a corresponding hostRoomUrl
so they can join a locked room to provide others access!
events, media, etc -> All participants follow the above mentioned pre-call experience and connect in the rooms via the underlying Whereby roomUrl
. No rendering, grid, or connection logic is required from your engineering team!