Re: [webrtc-pc] how to use datachannel bufferedamountlow threshold callback? (#1979)

> @henbos The implicit closing is still there in Chrome.
> 
> I believe an example would be good and, if desired, I could provide one. This is the most elegant solution I've been able to come up with so far: https://github.com/saltyrtc/saltyrtc-demo/blob/3280e7046f7ba1379b846a4960a3a1c356ce4381/web/scripts.js#L24:L64
> 
> One would then just do this in a loop:
> 
> ```js
> await fcdc.ready;
> fcdc.write(message);
> ```

Thanks for sharing this! However, could you please be more specific on why you chose the following values for high/low threshold:
`lowWaterMark = 262144, highWaterMark = 1048576`

Shouldn't the highWaterMark value be closer to 16MB, which is the maximum bufferedAmount?

Thanks :)

-- 
GitHub Notification of comment by jerlam06
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1979#issuecomment-626190981 using your GitHub account

Received on Saturday, 9 May 2020 15:16:05 UTC