Set bitrate for voice channels support (#363)

* Set bitrate for voice channels

* Docs for bitrate settings and values
This commit is contained in:
Nicholas Tay
2016-05-23 10:53:52 +10:00
committed by abalabahaha
parent fe1d0bb595
commit bea1663052
8 changed files with 96 additions and 11 deletions

View File

@@ -977,6 +977,14 @@ var Client = (function (_EventEmitter) {
return this.internal.setChannelUserLimit(channel, limit).then(dataCallback(callback), errorCallback(callback));
};
// def setChannelBitrate
Client.prototype.setChannelBitrate = function setChannelBitrate(channel, kbitrate) {
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
return this.internal.setChannelBitrate(channel, kbitrate).then(dataCallback(callback), errorCallback(callback));
};
// def updateChannel
Client.prototype.updateChannel = function updateChannel(channel, data) {