Relay.Calling.RecordAction
Relay.Calling.RecordAction
This object returned from record_async
method that represents a recording currently active on a call.
Properties
Property | Type | Description |
---|---|---|
result | Relay.Calling.RecordResult | Final result of recording. |
state | string | Current state of recording. |
completed | boolean | Whether the recording has finished. |
payload | dict | Payload sent to Relay to start recording. |
control_id | string | UUID to identify the recording. |
Methods
stop
Stop the action immediately.
Parameters
None
Returns
coroutine
- Coroutine that will return a Relay.Calling.StopResult
object.
Examples
Start recording the call and stop it after 10 seconds:
import asyncio # to use sleep
action = await call.record_async(stereo=True)
await asyncio.sleep(10)
await action.stop()