webrtc-java icon indicating copy to clipboard operation
webrtc-java copied to clipboard

`onBufferedAmountChange` is not firing

Open zibet27 opened this issue 4 months ago • 4 comments

Describe the bug onBufferedAmountChange never fires on macOS; other datachannel events work fine.

To Reproduce Provided example uses Kotlin:

val nativeChannel: RTCDataChannel = pc.createDataChannel(label, RTCDataChannelInit())
nativeChannel.registerObserver(object : RTCDataChannelObserver {
            override fun onBufferedAmountChange(previousAmount: Long) {   
                 println("onBufferedAmountChange: $previousAmount")
            }
}

val largeData: ByteBuffer = createBytes(100 * 1024)
dataChannel1.send(RTCDataChannelBuffer(data, true))

// Nothing happens; the time limit is 5 seconds.

Expected behavior The onBufferedAmountChange event should be fired once.

Desktop:

  • OS: macOS
  • Version: Sequoia

zibet27 avatar Oct 13 '25 08:10 zibet27

Hi @zibet27, thanks for the report. I have to check this on my mac mini and will report back.

devopvoid avatar Oct 19 '25 12:10 devopvoid

Hi! @devopvoid, did you have a chance to check the issue?

zibet27 avatar Nov 12 '25 15:11 zibet27

@devopvoid I'm getting blocked by this as well, have you had a chance to look into it?

rnett avatar Dec 10 '25 20:12 rnett

@devopvoid The issue is actually already fixed by https://github.com/devopvoid/webrtc-java/pull/206. I thought this commit was already published. I created a local Maven publication of the main branch, and it works as expected. When do you plan to release the next version? Sorry for the misunderstanding.

zibet27 avatar Dec 19 '25 10:12 zibet27

@devopvoid we too are blocked. A release would be appreciated!!!! :)

ApoloApps avatar Jan 14 '26 23:01 ApoloApps