Hi,
On Thu, Aug 25, 2022 at 4:04 PM Vedachalam Muralidharan
<
vmura...@gmail.com> wrote:
>
> Cometd can be used for voice calls, pls clarify
CometD message payloads are in JSON format, but CometD supports binary
by encoding via Z85, please read the documentation:
https://docs.cometd.org/current/reference/#_concepts_binary_data.
Other than allowing you to carry binary data, there is no other
support specifically for audio, so you have to implement your own
protocol at the application level if you want something more.
For example, you may want to request audio bytes starting at a certain
time. At the application level you will have to specify a JSON field
that indicates the start time.
Similarly, in the response you may want to indicate a range (bytes or
time) of the audio bytes, so you can feed an audio player.
Same goes for buffering, you have to implement it in the application.