You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**New**:
- Add header 'QB-OS' in all API requests for improving analytics;
**Updated:**
- Encode body of all API requests;
Encode based on this https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters;
- Rework `muc.join` method:
- Rework putting parameters of the muc.join method. Now could pass `jid` or `id` of a dialog;
- Now uses Node.js callbacks approach instead of a returned stanza if you pass 2 arguments to the callback function. **If you pass 1 arguments you will get stanza element as before**;
```
QB.chat.muc.join(dialogId, function(error, response) {
if(error) {
console.log('Error is null when all is Ok');
}
console.log(`response.dialogId` is always contains in response);
});
```
- QB.webrtc.onCallStatsReport(session, userId, stats, error) will return new (uptaded) stats:
```
stats = {
local: {
audio: {
bitrate: 71, // kilobits per second (kbps)
bytesSent: 226410,
packetsSent: 1250,
timestamp: 1522680935736
},
video: {
frameHeight: 480,
frameWidth: 640,
framesPerSecond: 25.8,
bitrate: 498, // kilobits per second (kbps)
bytesSent: 1438862,
packetsSent: 1498,
timestamp: 1522680935736
},
candidate: {
protocol: "udp"
ip: "192.168.1.179"
port: 51038
}
},
remote: {
audio: {
bitrate: 47, // kilobits per second (kbps)
bytesReceived: 148211,
packetsReceived: 1250,
timestamp: 1522680935736
},
video: {
frameHeight: 480,
frameWidth: 640,
framesPerSecond: 30.4,
bitrate: 533, // kilobits per second (kbps)
bytesReceived: 1663716,
packetsReceived: 1498,
timestamp: 1522680935736
},
candidate: {
protocol: "udp",
ip: "192.168.1.179",
port: 51908
}
}
}
```
Copy file name to clipboardExpand all lines: docs/QB.addressbook.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1291,7 +1291,7 @@ <h5>Example</h5>
1291
1291
1292
1292
1293
1293
<footer>
1294
-
Documentation generated by <atarget="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 28 2018 18:12:50 GMT+0200 (FLE Standard Time)
1294
+
Documentation generated by <atarget="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 12 2018 14:47:36 GMT+0300 (FLE Daylight Time)
Documentation generated by <atarget="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 28 2018 18:12:50 GMT+0200 (FLE Standard Time)
1312
+
Documentation generated by <atarget="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 12 2018 14:47:36 GMT+0300 (FLE Daylight Time)
Documentation generated by <atarget="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 28 2018 18:12:50 GMT+0200 (FLE Standard Time)
2671
+
Documentation generated by <atarget="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 12 2018 14:47:37 GMT+0300 (FLE Daylight Time)
0 commit comments