Commit Graph

19 Commits

Author SHA1 Message Date
Daniel Calviño Sánchez
ed54b9f03a
Fix video stream type not included in PeerConnectionEvent
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-11-16 15:45:34 +01:00
Daniel Calviño Sánchez
969c08ea79
Use comparison operator rather than equals for enums in WebRTC code
Fixes SPP_EQUALS_ON_ENUM issue from SpotBugs.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-11-14 11:29:52 +01:00
Daniel Calviño Sánchez
9f445efc1c Post event when a participant is connected and disconnected
RTCPeerConnections have several states but, for simplicity, for now the
events posted reflect only if the connection is fully established or
not (which includes both a broken connection or an established
connection that is unstable or being updated), which is enough for a
basic information about the connection state in the UI.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-09-18 23:25:57 +02:00
Daniel Calviño Sánchez
3274c1e1fa
Fix typo in name of method to check if video should not be received
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-05-02 13:36:13 +02:00
Marcel Hibbe
49fd2640bf
rename method
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-03-30 12:08:54 +02:00
Tim Krüger
346089cecf
Use Transceivers instead of constraints to discard received video tracks
After the migration from WebRTC from plan b to unified plan in commit 86f20dc
the media constraints are ignored for creating an answer on a peer
connection:

> Offer to Receive Options/Constraints
>
> These constraints are passed to PeerConnection’s methods for creating SDP to
> add placeholder media sections in case a sending track would not have already
> created one.
>
> With Unified Plan semantics, these are still supported for creating offers
> using a backwards compatibility shim (basically creating an RtpTransceiver if
> one doesn’t exist). It is recommended to switch to the RtpTransceiver API
> (example below). _They are no longer supported when creating answers._
>
> [1]

Because of that now all transceivers of type VIDEO will be stopped if it
is only an audio call. After stopping the transceivers the status for the
video tracks will be automatically set to ENDED.

In the 'ParticipantsAdapter' it will be checked if the video tracks are
ENDED. In that case the user avatar will be shown like before.

Resolves: #1852
See: #1773, commit 86f20dc, [1]

[1] https://docs.google.com/document/d/1PPHWV6108znP1tk_rkCnyagH9FK205hHeE9k5mhUzOg/edit#heading=h.9dcmkavg608r

Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-03-30 12:08:54 +02:00
Tim Krüger
f08a9ef463
Rename MagicPeerConnectionWrapper to PeerConnectionWrapper
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-02-23 12:21:41 +01:00
Mario Danic
855ed05cf6 Progress
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-22 15:23:28 +01:00
Mario Danic
0ecd90a45c Clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-21 12:15:35 +01:00
Mario Danic
f00f01c175 Fix stuff
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-21 11:49:36 +01:00
Mario Danic
c09e08c7fd Partially works
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-21 10:57:28 +01:00
Mario Danic
bec37f82ae Some
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-21 10:27:43 +01:00
Mario Danic
ba5de1a7e0 Many improvements
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-16 04:15:21 +01:00
Mario Danic
3b447ee7d5 Restructuring
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-15 18:14:06 +01:00
Mario Danic
eb9d7ec0d7 Some progress
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-15 15:59:42 +01:00
Mario Danic
ef714afe68 Work
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-14 23:37:01 +01:00
Mario Danic
456cc4e85f Some progress
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-14 15:23:44 +01:00
Mario Danic
de538437d1 Update
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-14 11:12:31 +01:00
Mario Danic
846defc52c Some work
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-13 04:05:17 +01:00