Hi,
I am using AudioStreamer and Asynstreams like in the walkie-talkie example. But if I use a modal dialog (like, i.e., inputlist) in the receiving terminal the audio do not play and, when I close the dialog, it continues playing and accumulates a delay.
The code in the socket's newdata event is
So I am not writing to the output buffer, but still it accumulates. How can I "reset" the buffer and drop the data I do not need?
Alternatively, I have been thinking in using a RTSP server (which should handle sync problems), but there is none in B4A. I need something like https://github.com/VideoExpertsGroup/RTSP.Server.Android
Any ideas? Thanks
I am using AudioStreamer and Asynstreams like in the walkie-talkie example. But if I use a modal dialog (like, i.e., inputlist) in the receiving terminal the audio do not play and, when I close the dialog, it continues playing and accumulates a delay.
The code in the socket's newdata event is
B4X:
If playaudio Then
audioStream.Write(Buffer)
End If
Alternatively, I have been thinking in using a RTSP server (which should handle sync problems), but there is none in B4A. I need something like https://github.com/VideoExpertsGroup/RTSP.Server.Android
Any ideas? Thanks