Re: [webrtc-pc] data channel default binaryType value is 'blob' (#2170)

It is possible in SDP to ask for infinite message size.
However, no WebRTC engine that doesn't implement 'blob' will be able to accept that offer; it will always negotiate down to the largest size that it can comfortably accomodate in an ArrayBuffer.

(FWIW, the limiting factor is the need to allocate a reassembly buffer, since all the pieces of the ArrayBuffer have to be assembled before giving it to the user in a single onmessage event.)

(Parenthesis 2: If we really wanted to support infinite sizes, we should support an interface of stream, not blob - supporting blob means that instead of hitting the ceiling on the size of reassembly buffer, which occurs pretty frequently, we hit the ceiling on amount of RAM available, or, with disk-buffered blobs, amount of disk available. Those things will occur more rarely, and the code paths handling them will therefore be less tested.)


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 29 August 2023 08:10:01 UTC