I have a stream from canvas. Using canvas streaming example
But, i want to set maxBitrate and minBitrate settings for customStream, like this settings allowed for deviceId
Code:
function getConstraints() {
var constraints;
var stream = createCanvasStream();
constraints = {
audio: false,
video: false,
customStream: stream
};
return constraints;
}
Code:
publishStream = session.createStream({
...
disableConstraintsNormalization: true,
constraints {
video: {
width: {ideal: 1024},
height: {ideal: 768}
minBitrate: 800,
maxBitrate: 2200,
},
audio: true
}
}).on(STREAM_STATUS.PUBLISHING, function (publishStream) {