SignalWire.Relay.Calling.RecordAction
This object returned from RecordAsync
method that represents a record operation that is currently active on a call.
Properties
Property | Type | Description |
---|---|---|
ControlID | string | The identifier used to control the operation. |
Result | SignalWire.Relay.Calling.RecordResult | Final result of recording. |
State | SignalWire.Relay.Calling.CallRecordState | Current state of the record operation. |
Completed | bool | Whether the record operation has completed. |
Payload | SignalWire.Relay.Calling.CallRecord | Payload sent to Relay to start the record operation. |
Url | string | Url of the recording provided by Relay, the file may not be present at the URL until the recording is finished. |
Methods
Stop
Stop the action immediately.
Parameters
None
Returns
SignalWire.Relay.Calling.StopResult
- The result object to interact with.
Examples
Start recording in stereo mode and stop it if
agent
is not available in 3 seconds.
RecordAction actionRecord = call.RecordAsync(
new CallRecord
{
Audio = CallRecord.AudioParams
{
Stereo = true,
}
});
Thread.Sleep(3000);
if (!agent.IsAvailable)
{
StopResult resultStop = actionRecord.Stop();
}