Skip to main content

Relay::Calling::TapAction

This object is returned by the asynchronous tap_media! method that represents a running media tap on the call.

Signalwire will send RTP or Websocket Audio (WS or WSS).

Properties

PropertyTypeDescription
resultRelay::Calling::TapResultFinal tap result.
completedBooleanWhether the action has finished.
payloadHashPayload sent to Relay to start tapping.
control_IdStringUUID to identify the action.
source_deviceHashSource device sending media.

Methods

stop

Stop the action immediately.

Parameters

None

Returns

Relay::Calling::StopResult - A StopResult object with a successful property.

Examples

Tapping audio from the call and then stop it using the TapAction object.

action = call.tap_media!(audio_direction: "listen", target_addr: "127.0.0.1", target_port: 1234)
sleep 5
action.stop