How do I know if the buffered audio is played?

When your intended audio is dispatched using the playAudio event, you can transmit the checkpoint event through a WebSocket. Plivo will generate a 'played' event in response once the preceding media events leading up to the checkpoint event have been successfully played back to the end user.

Request

{

  "event": "checkpoint",

  "streamId": "20170ada-f610-433b-8758-c02a2aab3662",

  "name": "customer greeting audio"

}

Response

{

  "event": "played",

  "streamId": "20170ada-f610-433b-8758-c02a2aab3662",

  "name": "customer greeting audio"

}
Was this article helpful?
0 out of 0 found this helpful
Didn’t find what you are looking for? Create new ticket