Anton Shestakov <engored@ya.ru>, Mon, 11 Mar 2013 23:44:44 +0900
User can choose to use audio/video or both. Also visually mark pressed button.
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="{{ 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>