Anton Shestakov <engored@ya.ru>, Tue, 12 Mar 2013 13:56:00 +0900
User can observe (establish a peer connection without providing any media streams).
templates/index.html
Permissions: -rw-r--r--
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Tornado WebRTC
</title> <link rel="stylesheet" type="text/css" href="{{ static_url('css/kube.min.css') }}"> <link rel="stylesheet" type="text/css" href="{{ static_url('css/main.css') }}"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="{{ static_url('js/webrtc-adapter.js') }}"></script> <script src="{{ static_url('js/main.js') }}"></script> <video id="remote" autoplay></video> <video id="local" autoplay muted></video> <li><label class="small"><input id="audio" type="checkbox" checked>Use mic
</label></li> <li><label class="small"><input id="video" type="checkbox" checked>Use webcam
</label></li> <button id="btn-call" class="btn" onclick="call()">I want to call
</button> <button id="btn-receive" class="btn" onclick="receive()">I want to receive a call
</button> <span id="streaming" class="small"></span> <span id="status" class="small"></span>