2017-10-21 14:27:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!--
|
|
|
|
vim: set sts=2 sw=2 et :
|
|
|
|
|
|
|
|
|
|
|
|
Demo Javascript app for negotiating and streaming a sendrecv webrtc stream
|
|
|
|
with a GStreamer app. Runs only in passive mode, i.e., responds to offers
|
|
|
|
with answers, exchanges ICE candidates, and streams.
|
|
|
|
|
|
|
|
Author: Nirbheek Chauhan <nirbheek@centricular.com>
|
|
|
|
-->
|
|
|
|
<html>
|
|
|
|
<head>
|
2018-03-31 16:54:15 +00:00
|
|
|
<style>
|
|
|
|
.error { color: red; }
|
|
|
|
</style>
|
2017-10-21 14:27:29 +00:00
|
|
|
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
|
|
|
|
<script src="webrtc.js"></script>
|
|
|
|
<script>
|
|
|
|
window.onload = websocketServerConnect;
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div><video id="stream" autoplay>Your browser doesn't support video</video></div>
|
|
|
|
<div>Status: <span id="status">unknown</span></div>
|
|
|
|
<div>Our id is <b id="peer-id">unknown</b></div>
|
|
|
|
</body>
|
|
|
|
</html>
|