Skip to main content

Server Integration

Now that you have your Dyte API Key, you can move on to integrating Dyte's REST APIs with your server code. This diagram walks you through the flow request of starting a Interactive Livestream call via Dyte.



Diagram explaining how Dyte works

It all starts with creating a meeting which is needed to start a live video call. After a meeting has been created on Dyte's server, you can now add participants to the meeting. Each participant is given an authToken which is necessary for your client side to further interact with the meeting.

Let's dive into further details.

Create a meeting​

Create a Dyte meeting using the Create Meeting API. The API returns a unique identifier for your meeting which you will be using later.

Dyte meetings do not have a specific date or time associated to them, so you can either create them in advance or right when users need to join the meeting.

Add Participants​

Now that you have a meeting, it's time to add participants to the meeting. Call the Add Participant API with the unique identifier of your meeting. To specify the preset that your participant should use, remember to pass the preset_name parameter as well.

On successfully creating a participant, you will receive an authorization token (token) for each participant. Your server has complete control over when to distribute this token to the participants. Your client side needs the token to connect and interact with the meeting.

info

It is important to understand that you need to create participants with two kinds of presets for livestreaming. One preset is used for the livestreaming host and the other preset is used for the livestreaming viewer.

The host requires certain host controls such as the ability to Kick Participants, Mute Audio, Mute Video, and Pin Participant, as well as media permissions like Start Livestream and Admit or remove participants from the livestream. Ensure that you've selected those permissions for the host.

What's Next?​

Now, you can move now to integrating dyte on your client side or you can learn more about the different REST APIs that Dyte provides and how you can utilise them.

Client Setup