Stream events to Plivo
Play audio event
You can utilize the playAudio
event to transmit audio through the WebSocket. When the bi-directional attribute is set to true, Plivo can deliver the audio transmitted from your application to the party on the call.
Attributes
event | Indicates the event type. |
media | An object containing media metadata and payload |
contentType | The audio codec format. |
sampleRate |
Allowed values:
|
payload | Base64-encoded string of raw audio |
Request