Class RtcCall
A 1:1 call over MatrixRTC, as Element X and Element Call make them: each side's membership in the room's call as a state event, a ring notification, the media through LiveKit SFUs, and the frames encrypted with keys sent to each member's device.
Namespace: Uniform.Matrix.Calls
Assembly: Uniform.Matrix.Calls.dll
public sealed class RtcCall : VoiceCall, IAsyncDisposable
Fields
|
Edit this page
View Source
The delay of a leave handed to the authorization service, which keeps it while this side is on LiveKit, as Element Call has it.
Declaration
public static readonly TimeSpan HandedLeaveDelay
Field Value
|
Edit this page
View Source
How often a handed-over leave is restarted by this side too.
Declaration
public static readonly TimeSpan HandedLeaveRestart
Field Value
|
Edit this page
View Source
How long after the device disappears its membership ends, as Element Call has it.
Declaration
public static readonly TimeSpan LeaveDelay
Field Value
|
Edit this page
View Source
How often the delayed leave is restarted.
Declaration
public static readonly TimeSpan LeaveRestart
Field Value
|
Edit this page
View Source
How long a membership holds unless renewed.
Declaration
public static readonly TimeSpan MembershipExpiry
Field Value
|
Edit this page
View Source
How long the caller rings.
Declaration
public static readonly TimeSpan RingLifetime
Field Value
Properties
|
Edit this page
View Source
Whether the other user called.
Declaration
public override bool IsIncoming { get; }
Property Value
Overrides
|
Edit this page
View Source
The path of the media to this side's SFU, once connected.
Declaration
public override (IceCandidate? Local, IceCandidate? Remote) Path { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Hang up, or cancel an outgoing call that rings.
Declaration
public override Task HangupAsync(string reason = "user_hangup", CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
|
Edit this page
View Source
Return the members' devices of a room's call, without expired ones; their memberships by user and device.
Declaration
public static IReadOnlyList<(string UserId, string DeviceId, CallMemberContent Membership)> Members(Room room, DateTimeOffset now)
Parameters
Returns
|
Edit this page
View Source
Return the state key of a device's membership in a room's call.
Declaration
public static string MembershipStateKey(string userId, string deviceId)
Parameters
Returns
|
Edit this page
View Source
Decline an incoming call.
Declaration
public override Task RejectAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
|
Edit this page
View Source
Restart the media path after the network changed: join the SFUs again.
Declaration
public override Task RestartIceAsync(string reason, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
Implements