The conference skeleton

HTML sample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>WT Demo</title>
    <!-- Connect Watch Together SDK -->
    <script src="./WTSDK.js"></script>
</head>
<body>
  <button onclick="connect()">Start</button>
  <button onclick="disconnect()">Disconnect</button>
  <button onclick="videoOn()">Video ON</button>
  <button onclick="videoOff()">Video OFF</button>
  <button onclick="voiceOn()">Voice ON</button>
  <button onclick="voiceOff()">Voice Off</button>
  <button onclick="screenSharing()">Screen Share</button>
  <button onclick="stopScreenSharing()">Stop Screen Share</button>
    <div id="video">
      <!-- Container for video streams -->  
    </div>
    <script src="./index.js"></script>
</body>
</html>

Last updated