UNPKG

open-easyrtc

Version:

Open-EasyRTC enables quick development of WebRTC

117 lines (101 loc) 5.72 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--skip--> <title>EasyRTC Demo: Ice Filter</title> <link rel="stylesheet" type="text/css" href="../easyrtc/easyrtc.css" /> <!--hide--> <link rel="stylesheet" type="text/css" href="css/landing.css" /> <link rel="stylesheet" type="text/css" href="css/demo_audio_video_simple.css" /> <!-- Prettify Code --> <script type="text/javascript" src="js/prettify/prettify.js"></script> <script type="text/javascript" src="js/prettify/loadAndFilter.js"></script> <script type="text/javascript" src="js/prettify/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="js/prettify/prettify.css" /> <!--show--> <!-- Assumes global locations for socket.io.js and easyrtc.js --> <script src="/socket.io/socket.io.js"></script> <script type="text/javascript" src="../easyrtc/easyrtc.js"></script> <script type="text/javascript" src="js/demo_ice_filter.js"></script> </head> <body onload="connect();"> <!--hide--> <div id="container"> <div id="header"> <a href="index.html"><img id="logo_easyrtc" src="images/easyrtc_logo.png" alt="EasyRTC" style="" /></a> </div> <div id="menu"> <a class="menu_link" href="index.html"><span class="menu_item">Local Demos</span></a> <a class="menu_link" href="http://www.easyrtc.com/docs/"><span class="menu_item">Documentation</span></a> <a class="menu_link" href="https://github.com/priologic/easyrtc/issues"><span class="menu_item">Github Support</span></a> <a class="menu_link" href="http://www.easyrtc.com/"><span class="menu_item">Easyrtc.com</span></a> </div> <div id="main"> <!-- Main Content --> <h1>EasyRTC Demo: Ice Filter</h1> <p>Client side filtering of ICE configuration and ice candidates.</p> <p>Client-side ice filtering is meant as a testing tool, not something you should need to use in a production environment. </p> <hr /> <h2>The Demo</h2> <!--show--> <div id="demoContainer" > <div id="connectControls"> <div id="iam">Not yet connected...</div> <br /> <div id="iceEntries" style="clear:both;width:100%;overflow-x:hidden"> </div> <h3>Types of ice candidates passed through:</h3> <div style="clear:both;width:100%;margin-top:10px"> <input type="checkbox" style="float:left" checked="checked" id="allowLocal" style="float:left" /> <label for="allowLocal">Allow local connections</label> </div> <div style="clear:both;width:100%"> <input type="checkbox" style="float:left" checked="checked" id="allowStun" style="float:left" /> <label for="allowStun">Allow stun connections</label> </div> <div style="clear:both;width:100%"> <input type="checkbox" style="float:left" checked="checked" id="allowTurn" style="float:left" /> <label for="allowTurn">Allow turn connections</label> </div> <h3>Connected users:</h3> <div id="otherClients"></div> </div> <div id="videos"> <video autoplay="autoplay" playsinline="playsinline" class="easyrtcMirror" id="selfVideo" muted="muted" volume="0" ></video> <div style="position:relative;float:left;"> <video autoplay="autoplay" playsinline="playsinline" id="callerVideo"></video> </div> <!-- each caller video needs to be in it's own div so it's close button can be positioned correctly --> </div> </div> <!--hide--> <br style="clear:both;" /> <hr /> <h2>The Code</h2> <h3>HTML</h3> <pre id="prettyHtml" class="prettyprint linenums:1"> </pre> <h3>JavaScript</h3> <p>The contents of demo_ice_filter.js:</p> <pre id="prettyJS" class="prettyprint linenums:1"> </pre> <!-- Runs the SyntaxHighlighter --> <script type="text/javascript"> loadAndFilter(window.location.href, "prettyHtml",2 ); loadAndFilter(getHelperPath("js"), "prettyJS", 2); </script> <!-- End Main Content --> </div> <div id="footer"> <a href="https://github.com/open-easyrtc/open-easyrtc"><img id="logo_pb_easyrtc" src="../easyrtc/img/powered_by_easyrtc.png" height="60" width="200" alt="Powered By Open-EasyRTC" /></a> <p id="license">EasyRTC source code released under a BSD2 License. <a href="https://github.com/priologic/easyrtc/blob/master/LICENSE">See LICENSE file in project folder</a> for details.</p> </div> </div> <!--show--> </body> </html>