W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2014

Sending very large chunks over the data channel

From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Tue, 27 May 2014 07:37:09 +0000
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <1447FA0C20ED5147A1AA0EF02890A64B1D000A19@ESESSMB209.ericsson.se>
This was discussed at the f2f, and the Streams API was mentioned, but as 
Harald pointed out yesterday the applicability of Streams with the data 
channel is not clear yet.

But there is another option that is supported right now. The blob 
(defined in http://dev.w3.org/2006/webapi/FileAPI/) supports slicing up 
data chunks in smaller parts (and of course re-assembling them back). 
So, it is quite simple to split up a large chunk in smaller ones, and 
then add some simple acking on the app layer (hold back sending next 
slice until the previous one is acked).

This is not elegant, but should work.

The quota API (https://dvcs.w3.org/hg/quota/raw-file/tip/Overview.html) 
allows for a bit more sophistication, but it seems to be supported by 
Chrome only (and then only an older version of the API).

Stefan
Received on Tuesday, 27 May 2014 07:37:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:40 UTC