Record Result
Relay.Calling.RecordResult
This object returned from record method that represents the final result of a recording.
Methods
getDuration
Returns the duration of the recording in seconds.
Parameters
None
Returns
number - Duration of the recording in seconds.
Examples
Start recording and use the duration.
getEvent
Returns the last Relay Event arrived for this operation.
Parameters
None
Returns
Relay.Event - Last Relay Event.
Examples
Start recording in stereo mode and grab the result when it’s completed.
getSize
Returns the size of the recording file.
Parameters
None
Returns
number - Size of the recording file.
Examples
Start recording and use the size of the file.
getUrl
Returns the HTTPS URL to the recording file.
Parameters
None
Returns
string - HTTPS URL to the file.
Examples
Start recording and use the URL.
isSuccessful
Return true if the recording succeeded, false otherwise.
Parameters
None
Returns
boolean - True/False accordingly to the state.
Examples
Start the recording and then check if it has ended successfully.