`onBufferedAmountChange` is not firing
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
Hi @zibet27, thanks for the report. I have to check this on my mac mini and will report back.
Hi! @devopvoid, did you have a chance to check the issue?
@devopvoid I'm getting blocked by this as well, have you had a chance to look into it?
@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.
@devopvoid we too are blocked. A release would be appreciated!!!! :)