mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 02:46:33 +00:00
e9b0656bad
JS code runs on the browser and uses the browser's webrtc implementation. C code uses gstreamer's webrtc implementation, for which you need the following repositories: https://github.com/ystreet/gstreamer/tree/promise https://github.com/ystreet/gst-plugins-bad/tree/webrtc You can build these with either Autotools gst-uninstalled: https://arunraghavan.net/2014/07/quick-start-guide-to-gst-uninstalled-1-x/ Or with Meson gst-build: https://cgit.freedesktop.org/gstreamer/gst-build/
26 lines
756 B
HTML
26 lines
756 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>
|
|
<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>
|