Relay.Calling.PlayAction
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
coroutine - Coroutine that will return 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
coroutine - Coroutine that will return 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
coroutine - Coroutine that will return a Relay.Calling.StopResult object.
Examples
Play an Mp3 file and stop it after 5 seconds:
volume
Control the volume of the playback.
Parameters
Returns
coroutine - Coroutine that will return a Relay.Calling.PlayVolumeResult object.
Examples
Start playing an audio file and increase the playback volume: