Class LegacyCall
One Matrix 1:1 call of m.call.* events, version 1, as Element Web and SchildiChat Legacy call: the invite, answer and select_answer, trickled candidates, and the hangup or reject; with the media of an AudioPeerConnection and VoiceMedia, and the video a caller sends through VideoReceiver.
Namespace: Uniform.Matrix.Calls
Assembly: Uniform.Matrix.Calls.dll
public sealed class LegacyCall : VoiceCall, IAsyncDisposable
Fields
|
Edit this page
View Source
How long an invite rings.
Declaration
public static readonly TimeSpan InviteLifetime
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 local and remote candidates the media goes through, once connected, e.g. to show whether it is relayed.
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
Decline an incoming call.
Declaration
public override Task RejectAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
|
Edit this page
View Source
Restart ICE, e.g. after the network changed: a new offer in m.call.negotiate, and the media move to the new path once it connects; nothing while a restart is under way.
Declaration
public override Task RestartIceAsync(string reason, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
Implements