Building custom client web application using Connector SDK
This tutorial will show you how to build your first simple web application using Connector APIs - the VidyoPlatform client SDK
Step 1 - prepare the environment
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="main.css" />
<title>Hello VidyoPlatform</title>
</head>
<body>
<main>
<div class="side-panel">
<label for="name">Display name:</label>
<input
type="text"
id="name"
value="User1"
size="20"
placeholder="Display name"
required
/>
<label for="host">Host:</label>
<input
type="text"
id="hostName"
value="test.platform.vidyo.io"
size="20"
placeholder="Host"
required
/>
<label for="roomKey">Room key:</label>
<input
type="text"
id="roomKey"
value="Ao83tcey3J"
size="20"
placeholder="Room key"
required
/>
<div class="controls">
<div>
<button
id="btnStart"
title="Start call"
onclick="joinCall()"
class="btnstart"
></button>
</div>
<button
id="btnEnd"
title="End call"
onclick="endCall()"
class="btnend"
></button>
</div>
</div>
<div class="renderer-container">
<div id="renderer"></div>
</div>
</main>
</body>
</html>Step 2 - load Connector SDK files
Include VidyoClient.js scripts into your page
Include SDK styles
Load above script onto the page
Step 3 - Create VidyoConnector object
viewId parameter of CreateVidyoConnector() function
Step 4 - Connect to video conference
Host and RoomKey
Join the room
Callbacks
Step 5 - Disconnect from video conference
Last updated