|
@@ -6,7 +6,7 @@ var util = {
|
|
|
|
|
|
CLOUD_HOST: '0.peerjs.com',
|
|
|
CLOUD_PORT: 9000,
|
|
|
- chunkedMTU: 60000, // 60KB
|
|
|
+ chunkedMTU: 16300, // The original 60000 bytes setting does not work when sending data from Firefox to Chrome, which is "cut off" after 16384 bytes and delivered individually. I suspect a bug in either Chrome or Firefox behind this.
|
|
|
|
|
|
// Logging logic
|
|
|
logLevel: 0,
|
|
@@ -107,11 +107,14 @@ var util = {
|
|
|
|
|
|
if (data) {
|
|
|
// Binary test
|
|
|
+ // Commented out the "binary blob" feature detection. Firefox supports sending Blobs, whereas Chrome does not. Hence we agree on the common denominator (which is using plain ArrayBuffers).
|
|
|
+ /*
|
|
|
try {
|
|
|
dc.binaryType = 'blob';
|
|
|
binaryBlob = true;
|
|
|
} catch (e) {
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
// Reliable test.
|
|
|
// Unfortunately Chrome is a bit unreliable about whether or not they
|