I'm using
webrtc-java to develop a webRTC server, which transfer files between peers.
When use data channel to transfer file by slice chunks, it'll blocked when the buffer overflow.
I have to delay a while (10ms) after each chunk sent. Is there any better way to solve this?
I've tried to observe the bufferedAmountChange, but the event never been fired.
Anyway to clear the sent buffer if the bufferedAmount reach the threshold?
JavaScript code work, but Java can not ...