Commit Graph

33 Commits

Author SHA1 Message Date
9b219a3717 peerdiscovery: add NearbyPeerNotification into Android/IOS interface
Change-Id: Ife5083f5bcc759bc9f2cd535421c2cf7cdeebcac
2019-07-17 16:55:55 -04:00
a89cf39255 dring: add cancelMessage API
Change-Id: Id99a8d8a3af3ef59d52a3267e0f44262c6df17f3
2019-04-02 13:33:18 -04:00
27625f2aaf api: add hardware encoding
Also adds hardware decoding to nodejs and jni APIs.

Change-Id: I2a89f2d9e09b597df0ec449e69e8e7b84bea5552
2019-03-21 19:49:14 -04:00
dda1f61d22 video: add rotation
Change-Id: I0b760e4ae32ab372cef49ef9c2120e722e041ef1
2019-03-07 16:27:29 -05:00
c52e332b0b audio: add audio meter
Adds a signal that sends the linear RMS level for a given ring buffer.
The signal must be turned on via the API and can be turned off when
needed.

Adds an audio preview so the mic can be read. Call startAudioDevice and
stopAudioDevice to initialize and stop the audio layer.

Change-Id: I6a71ef87ee805a6d4bfa824fa901dd638e8cbd65
2019-02-01 10:10:02 -05:00
5421633d70 nodejs: add hardware codec signals
Change-Id: I9fe37333bfbd4f089c8d85db9c2b446e4a1a7cbe
Gitlab: #55
2019-01-22 10:44:00 -05:00
94c8f4b616 accel: add signals when toggled
Preemptively adds signal for hardware encoding so version won't have to
be bumped again.

Change-Id: Ie3b828671fab3628853b85a2a8259200e9a809c0
Gitlab: #55
2019-01-16 13:26:09 -05:00
e22acb9f34 ringaccount: update account's archive before exporting
If the archive is not updated before exporting it, contacts can be
missing (because the file is only updated when a new device is
added for now).

Change-Id: Ie1068af26826b2a9acd1aa2c76123cff43eb6836
Gitlab: #65
2019-01-10 13:22:09 -05:00
2a806fa26d misc: update copyright date
Change-Id: Ia4ed75d04a284efa0763c917aeaa2f08863a87cb
2019-01-02 17:49:21 -05:00
0a667fb9da bin: remove any remaining pollEvents call
Change-Id: I848f8c7e5af8bd224c49de8a829475a99993abdc
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
Gitlab: #52
2018-09-24 13:50:58 -04:00
1179ad57f2 localrecorder: add public interface
Initial import of the localrecorder.

The local recorder provides a public interface for recording audio and
video messages locally. For instance this can be used to record voice
or video messages that could be later sent via file transfer.

Change-Id: I0675fc0fb8588db24ae86302a76d4d68f5871b82
2018-09-11 16:56:33 -04:00
9a12c78a6f call management: add ringing timeout
Currently there is no timeout for received calls. If a peer is
connected but doesn't answer a call, then this call will stay in
RINGING state 'forever' until the calling user manually aborts
it or peer becomes unreachable.

This patch implements a timeout system: When a call starts ringing
a job is scheduled in a fixed amount of time (corresponding to a new
user preference, by default 30s) to check whether the call is still
ringing or not. If the call is still ringing after timeout, hangup()
is called with 486 (BUSY) state and ringing stops.

Change-Id: I49218f5d4bdef8e4a8cee35fa6dde80f572b46c6
Gitlab: #42
2018-09-04 15:12:45 -04:00
ffc6d6d178 dring: unify register signal handlers functions
- provides registerSignalHandlers to replace registerCallHandlers,
  registerConfHandlers, registerDataXferHandlers,
  registerPresHandlers, and registerVideoHandlers which are now
  deprecated and forward to registerSignalHandlers

- this patch bumps the daemon API to 5.2.0 and is backwards
  compatible

Change-Id: Ie9479610114a474b4748614988c3ea0156dce6a9
Reviewed-by: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
2018-08-16 14:30:35 -04:00
6fc81302b2 sipaccountbase: add getLastMessages()
Because a client can receives messages before a client is ready to
receive it and because the daemon does not store any message, we
should have, like calls or file transfers, have a method to get
these messages.

So, this patch introduces a new method which gives the ability to
retrieve messages since the daemon has been launched. To do that,
when the daemon will receives a new message, it will store this
message into a queue (limited to 1000 messages) and save the
related timestamp. When the client is ready it can call getLastMessages
with its last known timestamp. This method will return all messages
received after this timestamp.

Note: the perfect way to do that is to store messages directly in
the daemon not clients. We also need some synchronization processes.

Change-Id: Iceb1654088a843f9be5b4a47bcc23201e9b38c01
2018-06-06 17:09:00 -04:00
7f14e58c53 ringaccount: add the ability to copy the account archive
Add a method for exporting the account's archive in a
file.

This patch updates configurationmanager interfaces and
fix an error with exportOnDHT for nodejs.

Change-Id: I9fdfcd20b66854ca768166e5198b8ae428192305
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
2018-02-28 12:16:46 -05:00
1aa7759f8f 2018 copyright date update
Change-Id: I1ef88bc640f79790aad2b5285ea2c776aa8cd366
2018-01-23 17:26:34 -05:00
10f6af463b nodejs: changes for electron compatibility
Change-Id: Icfb6ca3858450eaf2b5bbfbb16fcc024c8c9d772
2017-07-24 08:07:43 +05:00
d3a6d209ab update copyright date
Change-Id: Iae6100324c900a04c37ebe5dde46189fc935e7b3
2017-07-19 18:44:51 -04:00
7c11d095f2 added correct newCallCreated callback
Change-Id: Id05c1f9198b80bc459fa0e2250b37ecb93a52060
2017-07-15 02:42:29 +05:00
2038837b37 nodejs: callbacks get queued to run on main loop
Also added more callbacks (CallSignal)

Change-Id: If4ded451557e9d3717444b178114919133954dfc
2017-07-14 16:50:39 -04:00
ce7c0a06c3 nodejs: added data structure conversions and more callbacks
Added functions to convert C++ map<string, string> and vector<int> to native JS objects

Also added 5 more callbacks that depended on above mentioned data structures

Change-Id: I10715d69446c15906feed526fff178c27703af10
2017-07-14 16:50:39 -04:00
0e2d40d73c nodejs: fix build error
Moved 'build/Release/dring.node' from BUILT_SOURCES to CLEANFILES
This fixed the build error where compiler could not find rule to make target

Change-Id: I6a2dd573894c8003489fcac5011229be2b1c7fa3
2017-07-14 16:50:39 -04:00
26a6341b29 nodejs: created RingDaemon JS Class
Class methods include addAccount and get/setVolume

Change-Id: Icc042fad7e50cc6c08e15827000b482c1346e4df
2017-07-14 16:50:39 -04:00
c2c15a1abf Added Typemaps to handle Callbacks
Removed hacky sed calls for the same purpose

Change-Id: I8d2c475be5d6a076b4be7d2637b7f6345f5daac1
2017-07-14 16:50:39 -04:00
5539b1ff93 nodejs: added more callbacks
Also made the registration of callbacks and init() an atomic function call.

Change-Id: Ifdc8e0dc20c8d617e9c61320634e257e7f264277
2017-07-14 16:50:39 -04:00
e67f2c219e nodejs: implement two Javascript callbacks
Got two Javascript Callbacks (setAccountsChangedCb and setRegistrationStateChangedCb) working

Change-Id: I36d39471a52743ea5b2793ab3260acbb09930d9b
2017-07-14 16:50:39 -04:00
3a42e9d82f nodejs: build module after generating bindings
Change-Id: I2170cffef8a14578a61aa81f1ac62928f3fd3662
2017-07-14 16:50:39 -04:00
b8366ceb47 update for latest daemon API changes
Change-Id: I8cca63bbd28bd5642845c21837cae7c756af1a9b
2017-07-14 16:50:39 -04:00
8ae44ea7b0 remove unneeded file
Change-Id: I0c3f35056e43047fa23ca97ef34b6a4db7a4a079
2017-07-14 16:50:39 -04:00
cd37f099ad fix include
Change-Id: I8067b681e257a45eee0972c53c408f7c19817afb
2017-07-14 16:50:39 -04:00
4181bb47da gyp: link with dring
Change-Id: Ie93c667900205a3fc756707cd2bde6174202f805
2017-07-14 16:50:39 -04:00
6c2f1c9d17 Included dring source directory in binding.gyp file
Change-Id: Ifcb75604e087140378b4f083908023add606c229
2017-07-14 16:50:39 -04:00
c4d03c6dbf nodejs: add initial module
Change-Id: I12310bd4a5826e5658e5b7fe72a8a5ae6efe82d0
2017-07-14 16:50:39 -04:00