Skip to content

Commit

Permalink
Release 0.6.30.
Browse files Browse the repository at this point in the history
  • Loading branch information
avinash committed Feb 21, 2018
1 parent 0d93e42 commit e11f102
Show file tree
Hide file tree
Showing 28 changed files with 274 additions and 106 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can raise tickets on [our support portal](http://support.temasys.io) or on [
##### Current versions and stability
We recommend that you always use the latest versions of the Temasys Web SDK as WebRTC is still evolving and we adapt to changes very frequently.

[Latest version: `0.6.29`](https://github.com/Temasys/SkylinkJS/releases/tag/0.6.29).
[Latest version: `0.6.30`](https://github.com/Temasys/SkylinkJS/releases/tag/0.6.30).

##### Setting AdapterJS flags
If you require to set Temasys AdapterJS flags (e.g. forcing Temasys WebRTC plugin), we recommend the following method:
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "skylinkjs",
"description": "WebRTC real-time video conversation library",
"version": "0.6.29",
"version": "0.6.30",
"homepage": "https://temasys.io",
"author": {
"name": "Temasys Communications Pte. Ltd.",
Expand Down
32 changes: 23 additions & 9 deletions doc/classes/Skylink.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkylinkJS 0.6.29</title>
<title>SkylinkJS 0.6.30</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- font and icon -->
<link rel="shortcut icon" type="image/ico" href="../assets/favicon.ico">
Expand Down Expand Up @@ -33,7 +33,7 @@
<span class="icon-bar"></span>
</button>
<a href="" class="navbar-brand">
<img src="../assets/img/logo.svg" /><small>Version: 0.6.29</small>
<img src="../assets/img/logo.svg" /><small>Version: 0.6.30</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
Expand Down Expand Up @@ -4872,7 +4872,7 @@ <h3 class="code-item-name"><code>_closeDataChannel</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_data-channel.js.html#l339"><code>source&#x2F;data-channel.js:339</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_data-channel.js.html#l340"><code>source&#x2F;data-channel.js:340</code></a>
</small>


Expand Down Expand Up @@ -5981,7 +5981,7 @@ <h3 class="code-item-name"><code>_getDataChannelBuffer</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_data-channel.js.html#l230"><code>source&#x2F;data-channel.js:230</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_data-channel.js.html#l231"><code>source&#x2F;data-channel.js:231</code></a>
</small>


Expand Down Expand Up @@ -11052,7 +11052,7 @@ <h3 class="code-item-name"><code>_sendMessageToDataChannel</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_data-channel.js.html#l264"><code>source&#x2F;data-channel.js:264</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_data-channel.js.html#l265"><code>source&#x2F;data-channel.js:265</code></a>
</small>


Expand Down Expand Up @@ -12354,7 +12354,7 @@ <h3 class="code-item-name"><code>_waitForOpenChannel</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l650"><code>source&#x2F;room-connection.js:650</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l652"><code>source&#x2F;room-connection.js:652</code></a>
</small>


Expand Down Expand Up @@ -19399,6 +19399,20 @@ <h4>Parameters:</h4>
</div>
</li>

<li class="param">
<code class="param-name">disableBundle</code>
<span class="type"><b>{</b>String<b>}</b></span>

<span class="label">Optional</span>


<div class="param-description">
<small class="default"><span>DEFAULT: </span><code>false</code></small>
The flag if for each Peer connection instead of bundling all
media connections into 1 connection, should have all of them negotiated as different separate media connections.
</div>
</li>

</ul>

</li>
Expand Down Expand Up @@ -19695,7 +19709,7 @@ <h3 class="code-item-name"><code>leaveRoom</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l466"><code>source&#x2F;room-connection.js:466</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l468"><code>source&#x2F;room-connection.js:468</code></a>
</small>


Expand Down Expand Up @@ -19952,7 +19966,7 @@ <h3 class="code-item-name"><code>lockRoom</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l582"><code>source&#x2F;room-connection.js:582</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l584"><code>source&#x2F;room-connection.js:584</code></a>
</small>


Expand Down Expand Up @@ -25304,7 +25318,7 @@ <h3 class="code-item-name"><code>unlockRoom</code></h3>


<small>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l616"><code>source&#x2F;room-connection.js:616</code></a>
<i class="fa fa-chevron-right"></i>&nbsp;&nbsp;Defined in: <a href="../files/source_room-connection.js.html#l618"><code>source&#x2F;room-connection.js:618</code></a>
</small>


Expand Down
29 changes: 18 additions & 11 deletions doc/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"project": {
"name": "skylinkjs",
"description": "Temasys Web SDK is an open-source client-side library for your web-browser that enables any website to easily leverage the capabilities of WebRTC and its direct data streaming powers between peers for audio/video conferencing or file transfer.",
"version": "0.6.29",
"version": "0.6.30",
"url": "https://temasys.io/"
},
"files": {
Expand Down Expand Up @@ -2763,7 +2763,7 @@
},
{
"file": "source/data-channel.js",
"line": 230,
"line": 231,
"description": "Function that returns the Datachannel buffer threshold and amount.",
"itemtype": "method",
"name": "_getDataChannelBuffer",
Expand All @@ -2778,7 +2778,7 @@
},
{
"file": "source/data-channel.js",
"line": 264,
"line": 265,
"description": "Function that sends data over the Datachannel connection.",
"itemtype": "method",
"name": "_sendMessageToDataChannel",
Expand All @@ -2789,7 +2789,7 @@
},
{
"file": "source/data-channel.js",
"line": 339,
"line": 340,
"description": "Function that stops the Datachannel connection and removes object references.",
"itemtype": "method",
"name": "_closeDataChannel",
Expand Down Expand Up @@ -4283,6 +4283,13 @@
"description": "The type of certificate that Peer connection should\n generate and use when available.\n- When not provided, its value is <code>AUTO</code>.\n [Rel: Skylink.PEER_CERTIFICATE]",
"type": "String",
"optional": true
},
{
"name": "disableBundle",
"description": "The flag if for each Peer connection instead of bundling all\n media connections into 1 connection, should have all of them negotiated as different separate media connections.",
"type": "String",
"optional": true,
"optdefault": "false"
}
]
},
Expand Down Expand Up @@ -4381,7 +4388,7 @@
},
{
"file": "source/room-connection.js",
"line": 466,
"line": 468,
"description": "<blockquote class=\"info\">\n Note that this method will close any existing socket channel connection despite not being in the Room.\n</blockquote>\nFunction that stops Room session.",
"itemtype": "method",
"name": "leaveRoom",
Expand Down Expand Up @@ -4446,7 +4453,7 @@
},
{
"file": "source/room-connection.js",
"line": 582,
"line": 584,
"description": "<blockquote class=\"info\">\n Note that broadcasted events from <a href=\"#method_muteStream\"><code>muteStream()</code> method</a>,\n <a href=\"#method_stopStream\"><code>stopStream()</code> method</a>,\n <a href=\"#method_stopScreen\"><code>stopScreen()</code> method</a>,\n <a href=\"#method_sendMessage\"><code>sendMessage()</code> method</a>,\n <a href=\"#method_unlockRoom\"><code>unlockRoom()</code> method</a> and\n <a href=\"#method_lockRoom\"><code>lockRoom()</code> method</a> may be queued when\n sent within less than an interval.\n</blockquote>\nFunction that locks the current Room when in session to prevent other Peers from joining the Room.",
"itemtype": "method",
"name": "lockRoom",
Expand All @@ -4456,7 +4463,7 @@
},
{
"file": "source/room-connection.js",
"line": 616,
"line": 618,
"description": "<blockquote class=\"info\">\n Note that broadcasted events from <a href=\"#method_muteStream\"><code>muteStream()</code> method</a>,\n <a href=\"#method_stopStream\"><code>stopStream()</code> method</a>,\n <a href=\"#method_stopScreen\"><code>stopScreen()</code> method</a>,\n <a href=\"#method_sendMessage\"><code>sendMessage()</code> method</a>,\n <a href=\"#method_unlockRoom\"><code>unlockRoom()</code> method</a> and\n <a href=\"#method_lockRoom\"><code>lockRoom()</code> method</a> may be queued when\n sent within less than an interval.\n</blockquote>\nFunction that unlocks the current Room when in session to allow other Peers to join the Room.",
"itemtype": "method",
"name": "unlockRoom",
Expand All @@ -4466,7 +4473,7 @@
},
{
"file": "source/room-connection.js",
"line": 650,
"line": 652,
"description": "Function that waits for Socket connection to Signaling to be opened.",
"itemtype": "method",
"name": "_waitForOpenChannel",
Expand Down Expand Up @@ -10075,15 +10082,15 @@
},
{
"message": "unknown tag: trigger",
"line": " source/room-connection.js:466"
"line": " source/room-connection.js:468"
},
{
"message": "unknown tag: trigger",
"line": " source/room-connection.js:582"
"line": " source/room-connection.js:584"
},
{
"message": "unknown tag: trigger",
"line": " source/room-connection.js:616"
"line": " source/room-connection.js:618"
},
{
"message": "unknown tag: trigger",
Expand Down
22 changes: 15 additions & 7 deletions doc/files/source_data-channel.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkylinkJS 0.6.29</title>
<title>SkylinkJS 0.6.30</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- font and icon -->
<link rel="shortcut icon" type="image/ico" href="../assets/favicon.ico">
Expand Down Expand Up @@ -33,7 +33,7 @@
<span class="icon-bar"></span>
</button>
<a href="" class="navbar-brand">
<img src="../assets/img/logo.svg" /><small>Version: 0.6.29</small>
<img src="../assets/img/logo.svg" /><small>Version: 0.6.30</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
Expand Down Expand Up @@ -295,18 +295,19 @@ <h1 class="file-heading">File: source/data-channel.js</h1>
Skylink.prototype.refreshDatachannel = function (peerId) {

var self = this;
if(!self._dataChannels[peerId]) {
if(self._dataChannels[peerId] &amp;&amp; self._dataChannels[peerId][&quot;main&quot;] &amp;&amp; self._dataChannels[peerId].main.channel) {
var channelName = self._dataChannels[peerId].main.channelName;
var channelType = self._dataChannels[peerId].main.channelType;
var channelProp = channelType === self.DATA_CHANNEL_TYPE.MESSAGING ? &#x27;main&#x27; : channelName;
var bufferThreshold= self._dataChannels[peerId].main.channel.bufferedAmountLowThreshold;
var channelProp = &#x27;main&#x27;;
var bufferThreshold= self._dataChannels[peerId].main.channel.bufferedAmountLowThreshold || 0;

if (channelType === self.DATA_CHANNEL_TYPE.MESSAGING) {
setTimeout(function () {
if (self._peerConnections[peerId] &amp;&amp;
self._peerConnections[peerId].signalingState !== self.PEER_CONNECTION_STATE.CLOSED &amp;&amp;
(self._peerConnections[peerId].localDescription &amp;&amp;
self._peerConnections[peerId].localDescription.type === self.HANDSHAKE_PROGRESS.OFFER)) {
self._closeDataChannel(peerId, &#x27;main&#x27;, true);
log.debug([peerId, &#x27;RTCDataChannel&#x27;, channelProp, &#x27;Reviving Datachannel connection&#x27;]);
self._createDataChannel(peerId, channelName, bufferThreshold, true);
}
Expand Down Expand Up @@ -434,7 +435,7 @@ <h1 class="file-heading">File: source/data-channel.js</h1>
* @for Skylink
* @since 0.1.0
*/
Skylink.prototype._closeDataChannel = function(peerId, channelProp) {
Skylink.prototype._closeDataChannel = function(peerId, channelProp, isCloseMainChannel) {
var self = this;

if (!self._dataChannels[peerId]) {
Expand All @@ -459,14 +460,21 @@ <h1 class="file-heading">File: source/data-channel.js</h1>
}
};

if (!channelProp || channelProp === &#x27;main&#x27;) {
if(isCloseMainChannel)
{
closeFn(channelProp);
}
else if (!channelProp || channelProp === &#x27;main&#x27;) {
for (var channelNameProp in self._dataChannels) {
if (self._dataChannels[peerId].hasOwnProperty(channelNameProp)) {
if (self._dataChannels[peerId][channelNameProp]) {
closeFn(channelNameProp);
}
}
}

delete self._dataChannels[peerId];

} else {
if (!self._dataChannels[peerId][channelProp]) {
log.warn([peerId, &#x27;RTCDataChannel&#x27;, channelProp, &#x27;Aborting closing Datachannel as it does not exists&#x27;]);
Expand Down
4 changes: 2 additions & 2 deletions doc/files/source_data-process.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkylinkJS 0.6.29</title>
<title>SkylinkJS 0.6.30</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- font and icon -->
<link rel="shortcut icon" type="image/ico" href="../assets/favicon.ico">
Expand Down Expand Up @@ -33,7 +33,7 @@
<span class="icon-bar"></span>
</button>
<a href="" class="navbar-brand">
<img src="../assets/img/logo.svg" /><small>Version: 0.6.29</small>
<img src="../assets/img/logo.svg" /><small>Version: 0.6.30</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
Expand Down
4 changes: 2 additions & 2 deletions doc/files/source_data-transfer.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkylinkJS 0.6.29</title>
<title>SkylinkJS 0.6.30</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- font and icon -->
<link rel="shortcut icon" type="image/ico" href="../assets/favicon.ico">
Expand Down Expand Up @@ -33,7 +33,7 @@
<span class="icon-bar"></span>
</button>
<a href="" class="navbar-brand">
<img src="../assets/img/logo.svg" /><small>Version: 0.6.29</small>
<img src="../assets/img/logo.svg" /><small>Version: 0.6.30</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
Expand Down
4 changes: 2 additions & 2 deletions doc/files/source_ice-candidate.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkylinkJS 0.6.29</title>
<title>SkylinkJS 0.6.30</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- font and icon -->
<link rel="shortcut icon" type="image/ico" href="../assets/favicon.ico">
Expand Down Expand Up @@ -33,7 +33,7 @@
<span class="icon-bar"></span>
</button>
<a href="" class="navbar-brand">
<img src="../assets/img/logo.svg" /><small>Version: 0.6.29</small>
<img src="../assets/img/logo.svg" /><small>Version: 0.6.30</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
Expand Down
4 changes: 2 additions & 2 deletions doc/files/source_ice-connection.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkylinkJS 0.6.29</title>
<title>SkylinkJS 0.6.30</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- font and icon -->
<link rel="shortcut icon" type="image/ico" href="../assets/favicon.ico">
Expand Down Expand Up @@ -33,7 +33,7 @@
<span class="icon-bar"></span>
</button>
<a href="" class="navbar-brand">
<img src="../assets/img/logo.svg" /><small>Version: 0.6.29</small>
<img src="../assets/img/logo.svg" /><small>Version: 0.6.30</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
Expand Down
Loading

0 comments on commit e11f102

Please sign in to comment.