Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
738 stars 186 forks source link

[REQUEST]: Implemention of RtcDataChannel bufferedAmountLowThreshold and bufferedamountlow #994

Open kayy opened 8 months ago

kayy commented 8 months ago

Is your feature request related to a problem?

We need to support large file transfers via data channel. I implemented a chunk algorithm to transfer small packets (32 kB) but when sending to many packets, they got lost. We could make a workaround by observing the BufferedAmount property and delaying further transfers.

Describe the solution you'd like

Support of bufferedAmountLowThreshold property and the corresponding bufferedamountlow event.

See https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold

Describe alternatives you've considered

No response

Additional context

No response

karasusan commented 8 months ago

@kayy Thank you for requesting the feature.

memo: WRS-499