DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Getting started with Dyte - 1: Setting up Dyte
Karthic Rao
Karthic Rao

Posted on • Originally published at incredible.dev

Getting started with Dyte - 1: Setting up Dyte

Building audio, video apps with ease

View the video version of this blog at Incredible.dev.


What is Dyte?

Dyte is a SDK which provides the easiest way to add real-time communications using audio and video to your apps and platforms.

Features

Real-time, fast communications

Dyte is blazingly fast.

Real-time, fast communications

Video capabilities to your mobile apps

Dyte enables you to build Video calling capabilities for mobile

Video apps

Video capabilities to your web apps

Dyte Enables you to build Video calling capabilities for Web

Video apps

Audio apps

Dyte offers audio capabilities too.

Audio apps

Web and mobile applications

Dyte can power both mobile and web applications

Web and mobile applications


How dyte works?

Dyte is based largely on the WebRTC protocol, and the features and optimisations we build on top of it.

WebRTC protocol

Although the protocol is supposed to be peer-to-peer, it is not easy to build it reliably.

 Peer-to-Peer Protocol

Anyone who has tried implementing it by themselves would know that the implementions get real messy, real fast.

Implementation can get messy

To have a real working solution, servers with SFU, STUN, TURN, etc capabilities.

Servers with SFU, STUN, TURN

This is required to optimize for user bandwidth.

Optimize user bandwidth

Also to optimize for performance.

Optimize performance


Architecture

Here is the architecture of Dyte, and all the step that goes behind the scenes in setting up a meeting.

Architecture


Using JS SDK

Initialising

Here are the steps to initialise the Dyte JS SDK

  • Get meeting room name from the backend API
  • Get participant token form the backend API
  • Pass them as props to Dyte's React Component to initialize

Using JS React SDK

You can initialize a meeting in your React app, using this component, like below.

import { DyteMeeting } from "dyte-client";

function App() {
  return (
    <div className="App">
      <DyteMeeting
        onInit={(meeting) => {}}
        clientId={`orgId || clientId`}
        meetingConfig={{
          roomName: `roomName`,
          authToken: `authToken`,
        }}
      />
    </div>
  );
}

export default App;
Enter fullscreen mode Exit fullscreen mode

Hope this Incredible post conveys what is Dyte, its features and how to integrate it into your applications.
To learn more about Dyte join their community using this link.

Top comments (0)

Timeless DEV post...

How to write a kickass README

Arguably the single most important piece of documentation for any open source project is the README. A good README not only informs people what the project does and who it is for but also how they use and contribute to it.

If you write a README without sufficient explanation of what your project does or how people can use it then it pretty much defeats the purpose of being open source as other developers are less likely to engage with or contribute towards it.