Rate this page:

playSoundAndHangup

Copy URL
playSoundAndHangup(fileURL: 

string

):

void

Helper function to play sound to incoming call. It terminates a call in three cases: 1) playback is finished 2) call failed 3) call disconnected

Parameters

  • fileURL:

    string

    URL of audio (mp3) file to play

Returns

  • type:

    void