David Baker
2128f67dc3
Fix bug with ine-way audio after a transfer ( #2193 )
...
Seems chrome at least will give you a disabled audio track if you
already had another user media audio track and disabled it, so make
sure our tracks are enabled when we add them. We already did this
on one code path but it didn't get moved over when a new code path
was added.
On the plus side, we now know the reason for the ancient code that
had the comment asking what it was for, so update that.
2022-02-23 09:54:14 +00:00
Michael Telatynski
12e525b664
Improve typing around event emitter handlers ( #2180 )
2022-02-22 12:18:07 +00:00
David Baker
080426dfdd
Fix camera stuck on after call transfer ( #2188 )
...
The 'Replaced' error code is handled specially (for better or worse)
so was leaving the capture feeds open. Use the 'transfer' hangup
reason which is what we should be using anyway (and were, on the line
below for the other call...)
2022-02-21 17:11:14 +00:00
Šimon Brandner
5d4e3183aa
Don't store streams that are only used once ( #2157 )
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-02-08 10:13:58 +00:00
David Baker
16ca09eed8
Don't remove streams that still have tracks ( #2104 )
...
If a renogotiation ends up with one track being removed, we removed
the whole stream, which would cause us to lose, for example, audio
rather than just video.
2022-01-14 09:43:50 +00:00
Aaron R
80aaa6c32b
Fix imports to work with new lint rules ( #2003 )
...
* Add eslint-plugin-import
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Autofix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
* Manual fix
Signed-off-by: Aaron Raimist <aaron@raim.ist >
2021-12-09 15:57:43 -07:00
Šimon Brandner
04fad564f7
Fix call upgrades ( #2024 )
...
* Init call feeds with non-muted state
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Improve CallFeed docs
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-11-22 18:17:35 -07:00
Šimon Brandner
14e008bbad
Don't emit CallError when we fail to get screen-sharing stream ( #2005 )
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-28 16:23:06 +01:00
Šimon Brandner
c35cb57a79
Port some changes from group calls branch to develop ( #2001 )
...
* Add some useful getters
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
* Add removeLocalFeed()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
* Don't updateStream() if they're the same
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
* Add isSpeaking()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
* Improve speaking detection using history
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
* Make code for placing and answering calls more flexible
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
* Correctly log stream id
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Remove mistaken parameter
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add a unit
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
Co-authored-by: Robert Long <robert@robertlong.me >
2021-10-26 11:59:15 -07:00
Šimon Brandner
68dbe959bb
Add a logline
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:19:29 +02:00
Šimon Brandner
4b679c5056
Try to answer without video if we can't access it
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-10 08:19:22 +02:00
Robert Long
7d7975b8bb
Fix connecting to a call without a webcam
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-09 08:05:59 +02:00
Šimon Brandner
c63abe9988
Use ICallFeedOpts in the CallFeed constructor
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-10-02 08:12:43 +02:00
Šimon Brandner
b4bc554d7a
Make sure to callLengthInterval only once
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-29 15:46:22 +02:00
Šimon Brandner
6b93687ff0
Pass correct params to upgradeCall() to upgrade audio
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-26 13:10:00 +02:00
Šimon Brandner
9264050f41
Update src/webrtc/call.ts
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2021-09-26 07:26:08 +02:00
Šimon Brandner
0f6a59ed98
Allow answering calls without audio/video
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-25 10:00:51 +02:00
Šimon Brandner
a18326519b
Add missing return statement
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-25 08:26:13 +02:00
Šimon Brandner
b83977e72f
Add @param docs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-20 16:40:46 +02:00
Šimon Brandner
5c6a643436
Merge branch 'feature/call-upgrades' of https://github.com/SimonBrandner/matrix-js-sdk into feature/call-upgrades
2021-09-19 07:44:40 +02:00
Šimon Brandner
1ca1a69eb8
Fix docs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-19 07:44:28 +02:00
Šimon Brandner
76ea1ba192
Improve log
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2021-09-19 07:43:09 +02:00
Šimon Brandner
a4cacbc73a
Add call upgrade support
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-18 12:32:13 +02:00
Robert Long
53bdab7cc8
Merge pull request #1929 from matrix-org/robertlong/datachannels
...
Add WebRTC DataChannels to MatrixCall
2021-09-15 14:25:13 -07:00
Robert Long
f3a2bd6b40
Clean up stopAllMedia
2021-09-15 12:38:12 -07:00
Robert Long
6834137f50
Add datachannels to MatrixCall
2021-09-15 12:28:09 -07:00
Robert Long
c4d7fef0cd
Clone and stop local media streams from mediaHandler
2021-09-15 12:08:28 -07:00
Šimon Brandner
9bb87145f6
Revert "Remove RTX codec hack "
2021-09-15 17:17:56 +02:00
Šimon Brandner
be942fd66a
Remove RTX codec hack as the issue is no longer present on Chromium 90
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-15 16:38:59 +02:00
Travis Ralston
df039d3d8c
Merge pull request #1911 from SimonBrandner/feature/media-handling
...
Improve `MatrixCall` media handling and internally remove `CallType`s
2021-09-14 14:40:45 -06:00
Šimon Brandner
7143ef8a32
Internally remove call types
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-11 08:21:58 +02:00
Šimon Brandner
1bd7de5a18
Use MediaHandler
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-11 08:21:57 +02:00
Robert Long
d26dc49755
Merge pull request #1904 from matrix-org/robertlong/callfeed-dispose
...
Properly dispose of CallFeeds
2021-09-10 10:07:10 -07:00
Germain
be04559a66
Merge pull request #1878 from SimonBrandner/task/i-hate-my-code
2021-09-10 16:16:51 +01:00
Robert Long
3b4dcbb01d
Properly dispose of CallFeeds
2021-09-09 17:15:41 -07:00
Travis Ralston
324f9e58ea
Merge pull request #1873 from SimonBrandner/feature/call-timer/18566
...
Give `MatrixCall` the capability to emit `LengthChanged` events
2021-09-02 22:12:31 -06:00
Šimon Brandner
cae03817cb
Use source id directly
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-02 14:10:43 +02:00
Šimon Brandner
9431a52abe
Move DesktopCapturerSource out of global.d.ts
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-01 18:22:51 +02:00
Šimon Brandner
13c664ad34
Remove Element-specifc screen-sharing code out of the js-sdk
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-01 18:22:45 +02:00
Šimon Brandner
d7640d9e15
Don't use a callback in setScreensharingEnabled()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-01 18:08:59 +02:00
Šimon Brandner
c37f8ba4c7
Make placeCalls public
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-31 14:00:37 +02:00
Šimon Brandner
411fc47f28
Improve TypeScript in MatrixCall
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-28 09:27:47 +02:00
Šimon Brandner
f107d63fab
Give MatrixCall the capability to emit LengthChanged events
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-27 15:06:55 +02:00
Šimon Brandner
0d09f87777
Revert "Revert "Fix glare related regressions""
...
This reverts commit 4c552cc350 .
2021-08-17 07:33:40 +02:00
David Baker
4c552cc350
Revert "Fix glare related regressions"
2021-08-16 23:06:57 +01:00
Šimon Brandner
e6d1909f0b
Remove weird method call
...
If we can get localUsermediaStream gotUserMediaForAnswer() has alredy been called before
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 13:02:39 +02:00
Šimon Brandner
408976a199
Simplifie some code
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 12:58:38 +02:00
Šimon Brandner
4da49d926b
Remove unnecessary logs
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 12:57:27 +02:00
Šimon Brandner
75750ed760
Add a comment
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-15 12:56:48 +02:00
Dariusz Niemczyk
3e94db1837
Update src/webrtc/call.ts
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-08-11 14:38:13 +02:00