NotifyAction - addPlay()

Play an audio file on the call.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
PlayAction The action added to the NotifyAction object. Use the PlayAction object to define the audio file URL and number of times to loop the audio.

// instantiate NotifyAction
var notifyAction = new SNC.NotifyAction();

// add a play action
var play = notifyAction.addPlay();
play.setURL('http://www.moviesounds.com/2001/imsorry.wav');
play.setLoop(1);