0:be29d4a1df6d
Anton Shestakov <engored@ya.ru>, Sat, 09 Mar 2013 13:51:40 +0900
Sort of works. This is as fragile as it sounds actually, because it works only in perfect cases. Ice candidates from Chrome produce errors in Firefox; also Firefox cannot create answer to Chrome's offer; sound is missing in Firefox(?).

next change 1:4fde67f78a8e

templates/index.html

Permissions: -rw-r--r--

Other formats: Feeds:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tornado WebRTC</title>
<script src="{{ static_url('js/webrtc-adapter.js') }}"></script>
<script src="{{ static_url('js/main.js') }}"></script>
<style>
video#remote {
width: 480px;
height: 360px;
background: #777;
}
video#local {
position: absolute;
width: 160px;
height: 120px;
background: #555;
margin-top: 240px;
margin-left: -165px;
}
</style>
</head>
<body>
<video id="remote" autoplay></video>
<video id="local" autoplay muted></video>
<button onclick="call()">I want to call</button>
<button onclick="receive()">I want to receive a call</button>
</body>
</html>