Skip to content

Instantly share code, notes, and snippets.

@Ankit-Yadav-21
Created February 28, 2024 10:49
Show Gist options
  • Save Ankit-Yadav-21/07f65e113e604ad34be8d068202f61c8 to your computer and use it in GitHub Desktop.
Save Ankit-Yadav-21/07f65e113e604ad34be8d068202f61c8 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" href="style.css"> -->
<title>Cleveratti skills</title>
</head>
<body>
<div class="container">
<div class="localVideoContainer">
<video autoplay muted id="localVideo" style="width: 400px;" data-playable="true" data-local="true"
data-session-id={localSocketId} data-video-type="video" data-mirrored="true"></video>
</div>
<div class="remoteVideoContainer" id="remoteVideoContainer">
</div>
</div>
<button type="button" id="mic" onclick="handleMic()">Mic On</button>
<button type="button" id="videoId" onclick="handleVideo()">Video On</button>
<button type="button" id="screen" onclick="startScreenShare()">Start Screen Sharing</button>
<button type="button" id="leave" onclick="handleEndCall()">Leave</button>
<script src="https://cdn.socket.io/4.7.4/socket.io.min.js"
integrity="sha384-Gr6Lu2Ajx28mzwyVR8CFkULdCU7kMlZ9UthllibdOSo6qAiN+yXNHqtgdTvFXMT4"
crossorigin="anonymous"></script>
<script>
let userId = prompt('Please enter your name')
let roomId = prompt('Please enter room number')
</script>
<script src="https://service.cleverattiskills.com/index.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment