Skip to content

Commit

Permalink
Added [email protected] Fixed chunkSize issues. Improved demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Nov 4, 2016
1 parent bc1476f commit a8c0466
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 71 deletions.
5 changes: 4 additions & 1 deletion FileBufferReader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Last time updated: 2016-10-19 12:23:04 PM UTC
// Last time updated: 2016-11-04 7:11:11 AM UTC

// ________________
// FileBufferReader
Expand Down Expand Up @@ -229,6 +229,9 @@
}

var chunkSize = options.chunkSize || 15 * 1000;
if (options.extra && options.extra.chunkSize) {
chunkSize = options.extra.chunkSize;
}

var sliceId = 0;
var cacheSize = chunkSize;
Expand Down
4 changes: 2 additions & 2 deletions FileBufferReader.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fbr",
"preferGlobal": true,
"version": "2.0.3",
"version": "2.0.4",
"author": {
"name": "Muaz Khan",
"email": "[email protected]",
Expand Down
37 changes: 33 additions & 4 deletions demo/PeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,45 @@
username: 'muazkh'
});

iceServers.push({
urls: 'turn:webrtcweb.com:3344',
credential: 'muazkh',
username: 'muazkh'
});

iceServers.push({
urls: 'turn:webrtcweb.com:4433',
credential: 'muazkh',
username: 'muazkh'
});

iceServers = {
iceServers: iceServers
iceServers: iceServers,
iceTransportPolicy: 'all',
rtcpMuxPolicy: 'negotiate'
};

var optionalArgument = {
optional: [{
DtlsSrtpKeyAgreement: true
}]
}, {
googImprovedWifiBwe: true
}, {
googScreencastMinBitrate: 300
}, {
googIPv6: true
}, {
googDscp: true
}, {
googCpuUnderuseThreshold: 55
}, {
googCpuOveruseThreshold: 85
}, {
googSuspendBelowMinBitrate: true
}, {
googCpuOveruseDetection: true
}],
mandatory: {}
};

var offerAnswerConstraints = {
Expand Down Expand Up @@ -292,12 +323,10 @@
};

channel.onerror = function(e) {
console.error('channel.onerror', JSON.stringify(e, null, '\t'));
config.onerror(e);
};

channel.onclose = function(e) {
console.warn('channel.onclose', JSON.stringify(e, null, '\t'));
config.onclose(e);
};
}
Expand Down
Loading

0 comments on commit a8c0466

Please sign in to comment.