Adds config.adaptiveSimulcast, a new bool option that optionally enables simulcast adaptivity.

This commit is contained in:
George Politis 2014-11-04 14:27:23 +01:00
parent 74f158128e
commit ee44ed5749
3 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,7 @@ var config = {
openSctp: true, // Toggle to enable/disable SCTP channels
channelLastN: -1, // The default value of the channel attribute last-n.
adaptiveLastN: false,
adaptiveSimulcast: false,
useRtcpMux: true,
useBundle: true,
enableRecording: false,

View File

@ -22,7 +22,7 @@
<script src="libs/strophe/strophe.jingle.sessionbase.js?v=1"></script>
<script src="libs/strophe/strophe.jingle.session.js?v=2"></script>
<script src="libs/strophe/strophe.util.js"></script>
<script src="libs/colibri/colibri.focus.js?v=10"></script><!-- colibri focus implementation -->
<script src="libs/colibri/colibri.focus.js?v=11"></script><!-- colibri focus implementation -->
<script src="libs/colibri/colibri.session.js?v=1"></script>
<script src="libs/jquery-ui.js"></script>
<script src="libs/rayo.js?v=1"></script>

View File

@ -299,6 +299,9 @@ ColibriFocus.prototype._makeConference = function (errorCallback) {
if (config.adaptiveLastN) {
elemAttrs['adaptive-last-n'] = 'true';
}
if (config.adaptiveSimulcast) {
elemAttrs['adaptive-simulcast'] = 'true';
}
}
}
@ -848,6 +851,9 @@ ColibriFocus.prototype.addNewParticipant = function (peer) {
if (config.adaptiveLastN) {
elemAttrs['adaptive-last-n'] = 'true';
}
if (config.adaptiveSimulcast) {
elemAttrs['adaptive-simulcast'] = 'true';
}
}
}