Skip to main content

Relay.Calling.RecordAction

Relay.Calling.RecordAction

This object returned from record_async method that represents a recording currently active on a call.

Properties

PropertyTypeDescription
resultRelay.Calling.RecordResultFinal result of recording.
statestringCurrent state of recording.
completedbooleanWhether the recording has finished.
payloaddictPayload sent to Relay to start recording.
control_idstringUUID 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()