Rate this page:

playSoundAndHangup

Copy URL
playSoundAndHangup(fileURL: 

string

):

any

Helper function to play sound to incoming call. It also 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:

    any