WebRTC-Example/client/index.html

25 lines
701 B
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="webrtc.js"></script>
</head>
<body>
<video id="localVideo" autoplay playsinline muted style="width:40%;"></video>
<video id="remoteVideo" autoplay playsinline style="width:40%;"></video>
<div style="margin-top: 10px;">
Open this page in a second browser window then click below to start the WebRTC connection.
</div>
<div style="margin-top: 10px;">
<input type="button" id="start" onclick="start(true)" value="Start WebRTC"></input>
</div>
<script type="text/javascript">
pageReady();
</script>
</body>
</html>