Relay.Calling.PlayAction
This object returned from one of asynchronous play methods that represents a playing currently active on a call.
Properties
Methods
pause
Pause the playback immediately.
Parameters
None
Returns
Promise<PlayPauseResult> - Promise object that will be fulfilled with a Relay.Calling.PlayPauseResult object.
Examples
Start playing an audio file and pause it after 5 seconds.
resume
Resume the playback immediately.
Parameters
None
Returns
Promise<PlayResumeResult> - Promise object that will be fulfilled with a Relay.Calling.PlayResumeResult object.
Examples
Start playing an audio file, stop it and then resume it after 5 seconds.
stop
Stop the action immediately.
Parameters
None
Returns
Promise<StopResult> - Promise object that will be fulfilled with a Relay.Calling.StopResult object.
Examples
Start playing an audio file and stop it after 5 seconds.
volume
Control the volume of the playback.
Parameters
Returns
Promise<PlayVolumeResult> - Promise object that will be fulfilled with a Relay.Calling.PlayVolumeResult object.
Examples
Start playing an audio file and increase the playback volume.