Relay.Calling.TapAction
Relay.Calling.TapAction
This object returned from tapAsync method that represents the running media tapping active on a call.
Signalwire will send RTP or Websocket Audio (WS or WSS).
Methods-submenu
GetResult
Returns the final result of this tapping action.
Parameters
None
Returns
Relay.Calling.TapResult - Final tap result.
Examples
Start tapping audio and grab the result when it’s completed (RTP).
Start tapping audio and grab the result when it’s completed (WS or WSS).
GetState
Return the current tapping state.
Parameters
None
Returns
string - The current state.
Examples
Start tapping audio and print the state.
GetCompleted
Return true if tapping has finished, false otherwise.
Parameters
None
Returns
Boolean - True/False accordingly to the state.
Examples
Start tapping audio and check if it has finished.
GetSourceDevice
Return the source device sending media.
Parameters
None
Returns
Object - The source device.
Examples
Start tapping audio and then inspect the source device.
Stop
Stop the action immediately.
Parameters
None
Returns
error
Examples
Start tapping audio and then stop the action.
GetControlID
Return the UUID to identify the action.
Parameters
None
Returns
string - UUID to identify the action.