2013-05-22 09:27:05 +02:00
|
|
|
<!DOCTYPE html>
|
2013-02-28 00:22:10 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>WebRTC Reference App</title>
|
2013-05-22 09:27:05 +02:00
|
|
|
|
2013-02-28 00:22:10 +01:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
|
|
|
|
2013-05-22 09:27:05 +02:00
|
|
|
<link rel="canonical" href="{{ room_link }}"/>
|
|
|
|
<link rel="stylesheet" href="css/main.css" />
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/_ah/channel/jsapi"></script>
|
|
|
|
<script src="/js/main.js"></script>
|
2013-02-28 00:22:10 +01:00
|
|
|
<!-- Load the polyfill to switch-hit between Chrome and Firefox -->
|
2013-03-06 04:35:03 +01:00
|
|
|
<script src="/js/adapter.js"></script>
|
2013-02-28 00:22:10 +01:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript">
|
2013-05-22 09:27:05 +02:00
|
|
|
var channelToken = '{{ token }}';
|
|
|
|
var me = '{{ me }}';
|
|
|
|
var roomKey = '{{ room_key }}';
|
|
|
|
var roomLink = '{{ room_link }}';
|
2013-02-28 00:22:10 +01:00
|
|
|
var initiator = {{ initiator }};
|
2013-05-22 09:27:05 +02:00
|
|
|
var pcConfig = {{ pc_config|safe }};
|
|
|
|
var pcConstraints = {{ pc_constraints|safe }};
|
|
|
|
var offerConstraints = {{ offer_constraints | safe }};
|
|
|
|
var mediaConstraints = {{ media_constraints | safe }};
|
|
|
|
var turnUrl = '{{ turn_url }}';
|
|
|
|
var stereo = {{ stereo }};
|
2013-02-28 00:22:10 +01:00
|
|
|
|
|
|
|
setTimeout(initialize, 1);
|
|
|
|
</script>
|
|
|
|
<div id="container" ondblclick="enterFullScreen()">
|
|
|
|
<div id="card">
|
|
|
|
<div id="local">
|
2013-05-22 09:27:05 +02:00
|
|
|
<video id="localVideo" autoplay="autoplay" muted="true"/>
|
2013-02-28 00:22:10 +01:00
|
|
|
</div>
|
|
|
|
<div id="remote">
|
2013-05-22 09:27:05 +02:00
|
|
|
<video id="remoteVideo" autoplay="autoplay">
|
2013-02-28 00:22:10 +01:00
|
|
|
</video>
|
|
|
|
<div id="mini">
|
2013-05-22 09:27:05 +02:00
|
|
|
<video id="miniVideo" autoplay="autoplay" muted="true"/>
|
2013-02-28 00:22:10 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
2013-05-22 09:27:05 +02:00
|
|
|
<footer id="footer">
|
|
|
|
</footer>
|
2013-02-28 00:22:10 +01:00
|
|
|
</html>
|