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