Commit graph

9 commits

Author SHA1 Message Date
Nirbheek Chauhan
f8cbae9d6e sendrecv: Implement remote-offerer option for JS example
Now you can check the "Remote offerer" checkbox in the JS example to
force the peer to send the SDP offer. This involved implementing
support for receiving the OFFER_REQUEST message in the C example.

As a side-effect of this, the C example will no longer send
OFFER_REQUEST automatically when the --our-id option is passed. It
will only do so when the --remote-offerer option is explicitly passed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/31>
2021-02-10 16:23:40 +05:30
Nirbheek Chauhan
2892a8b206 sendrecv/js: Implement state handling for Connect button
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/31>
2021-02-10 16:21:34 +05:30
Seungha Yang
85aeda42fe sendrecv/js: Add an UI for connecting to specified peer id
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/28>
2020-12-07 20:40:50 +09:00
Costa Shulyupin
56a03add78 html: charset
Avoid warning:
The character encoding of the HTML document was not declared.
The document will render with garbled text in some browser configurations
if the document contains characters from outside the US-ASCII range.
The character encoding of the page must be declared in the document
or in the transfer protocol.
2020-04-16 17:53:17 +02:00
Yevgeny Kazakov
bb36c08126 Add video tag playsinline to enable autoplay in iOS Safari 2019-04-12 18:07:38 +00:00
Mathieu Duponchelle
547f296293 sendrecv: try to add a data channel 2018-09-21 13:12:16 +00:00
Nirbheek Chauhan
7c5fbf1aca sendrecv/js: custom getUserMedia constraints
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
2018-04-01 01:10:22 +05:30
Nirbheek Chauhan
3eabe5cb0b sendrecv/js: Make error statuses more prominent
Colour errors in red, and ensure that later status updates don't
overwrite existing error statuses.
2018-04-01 01:09:54 +05:30
Nirbheek Chauhan
e9b0656bad Add sendrecv implementation in js and gst webrtc
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/
2017-10-21 20:02:19 +05:30