mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 10:56:38 +00:00
7c5fbf1aca
The html page now contains a text area in which the default constraints will be added and can be edited. Closes https://github.com/centricular/gstwebrtc-demos/issues/11
34 lines
966 B
HTML
34 lines
966 B
HTML
<!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>
|
|
<style>
|
|
.error { color: red; }
|
|
</style>
|
|
<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>
|
|
<br/>
|
|
<div>
|
|
<div>getUserMedia constraints being used:</div>
|
|
<div><textarea id="constraints" cols=40 rows=4></textarea></div>
|
|
</div>
|
|
</body>
|
|
</html>
|