Find file
487c1ea Jun 30, 2016
95 lines (76 sloc) 2.95 KB
<!DOCTYPE html>
<meta name="description" content="Simplest possible examples of HTML, CSS and JavaScript." />
<meta name="author" content="//">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<meta itemprop="name" content=" simplest possible examples of HTML, CSS and JavaScript">
<meta itemprop="image" content="/images/icons/icon192.png">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#fff">
<base target="_blank">
<link rel="stylesheet" href="../css/main.css" />
button {
margin: 0 1em 0 0;
width: 5.2em;
div#buttons {
margin: 0 0 1.7em 0;
div#send {
float: left;
margin: 0 3em 1em 0;
div#sendReceive {
margin: 0 0 1em 0;
h1 {
margin: 0 0 1em 0;
h2 {
margin: 0 0 0.5em 0;
textarea {
color: #444;
font-family: 'Courier New', monospace;
font-size: 1em;
height: 7.0em;
padding: 0.5em;
<div id="container">
<div id="highlight">
<p>New codelab: <a href="">Realtime communication with WebRTC</a></p>
<h1><a href="../index.html" title=" home page"></a> RTCDataChannel</h1>
<!-- <p class="borderBelow">Check out the complete set of WebRTC demos at <a href="" title="WebRTC samples GitHub Pages"></a>.</p>
<div id="buttons">
<button id="startButton">Start</button>
<button id="sendButton">Send</button>
<button id="closeButton">Stop</button>
<div id="sendReceive">
<div id="send">
<textarea id="dataChannelSend" disabled placeholder="Press Start, enter some text, then press Send."></textarea>
<div id="receive">
<textarea id="dataChannelReceive" disabled></textarea>
<p>View the console to see logging.</p>
<p>The <code>RTCPeerConnection</code> objects <code>localPeerConnection</code> and <code>remotePeerConnection</code> are in global scope, so you can inspect them in the console as well.</p>
<p>Code in this example used by kind permission of Vikas Marwaha.</p>
<p>For more information about PeerConnection, see <a href="" title="RTCDataChannel section of HTML5 Rocks article about WebRTC">Getting Started With WebRTC</a>.</p>
<script src="js/main.js"></script>
<a href="" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
<script src="../js/lib/ga.js"></script>