Skip to content

onBufferedAmountChange is not firing #214

Description

@zibet27

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions