Can I bypass the limit imposed by chrome? I am not using audio-video and file transfer together.
RTCIceServer.url is deprecated. Use urls instead.
ICE failed, see about:webrtc for details.
Both from unknown lines.
//
// maxPacketSize is the size (before base64 encoding) that is sent in a
// single data channel message, in bytes.
// maxChunkSize is the amount read from a file at a time, in bytes.
// ackThreshold is the amount of data that can be sent before an ack is
// received from the party we're sending to, bytes.
// maxChunkSize should be a multiple of maxPacketSize.
// ackThreshold should be several times larger than maxChunkSize. For
// network paths that have greater latency, increase
// ackThreshold further.
//
var maxPacketSize = 40*1024; // max bytes per packet, before base64 encoding
var maxChunkSize = maxPacketSize * 10; // max binary bytes read at a time.
var waitingForAck = false;
var ackThreshold = maxChunkSize * 4; // send is allowed to be 400KB ahead of receiver
Give it a try and let me know if you see faster file transfers.