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
Jan Schmidt
5bf67feae8
sendrecv: Add a switch for remote-offerer
...
Add a switch to the command line utility that makes it request
the initial offer from the peer instead of generating it.
Modify the webrtc.js example to support a new REQUEST_OFFER
message, and generate the offer when receiving it.
2020-03-05 03:03:17 +11:00
Yevgeny Kazakov
bb36c08126
Add video tag playsinline to enable autoplay in iOS Safari
2019-04-12 18:07:38 +00:00
Yevgeny Kazakov
49e1478150
Replace deprecated onaddstream with ontrack; fixes #98
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
Mathieu Duponchelle
7865c31387
webrtc.js: fix tearing down
2018-09-21 13:12:16 +00:00
maxmcd
bb56d6eab7
Add Rust version of sendrecv example
...
This also comes with a docker image to collect all dependencies and
build everything.
Fixes https://github.com/centricular/gstwebrtc-demos/pull/20
2018-06-18 09:02:05 +03:00
Nirbheek Chauhan
ea8e960e29
sendrecv/js: Improve more logging and errors
2018-04-01 01:53:44 +05:30
Nirbheek Chauhan
9cc57d2dd1
sendrecv/js: Fix some null/undefined checks
2018-04-01 01:52:46 +05:30
Nirbheek Chauhan
669d234ebd
sendrecv/js: Don't reuse peer_id across sessions
...
It increases the likelihood of a collision with someone else, and it
was an unintended side-effect anyway.
2018-04-01 01:30:23 +05:30
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
fe40c70536
sendrecv/js: Simplify local stream management
...
Just use the fulfilled value of the promise directly instead of
storing it separately
2018-04-01 01:10:09 +05:30
Nirbheek Chauhan
9f4783fb60
sendrecv/js: Allow overriding peer_id and ws_server
...
This allows people to easily use a custom peer id or their own server
if the automatic values are not appropriate for them.
2018-04-01 01:10:09 +05:30
Nirbheek Chauhan
3879a5078d
sendrecv/js: Explicitly close the local stream when done
...
This immediately releases the webcam and mic instead of lazily at some
unpredictable time in the future.
2018-04-01 01:10:00 +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
bd6deaca46
sendrecv/js: Call getUserMedia on incoming call
...
Instead of registering it on page load. This will allow us to add an
option for users to override the default constraints later.
This is also generally nicer because the browser won't open the webcam
immediately when you load the page and keep recording from it.
2018-04-01 01:09:46 +05:30
Nirbheek Chauhan
20cf2503ee
sendrecv: Fix SDP message format
...
The format is {'sdp': {'sdp': <sdp>, 'type': <sdptype>}}
The multiparty-sendrecv demo already uses this format.
2018-03-23 19:00:37 +05:30
Matthew Waters
e4e83a648b
server/js: also allow running on localhost
2017-11-23 00:29:39 +11:00
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