data channel bufferAmount issue

56 views
Skip to first unread message

dannyxu

unread,
May 15, 2024, 12:00:43 PMMay 15
to discuss...@googlegroups.com
Hi guys,
  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 ...
Danny Xu
Reply all
Reply to author
Forward
0 new messages