FS-8087 #comment make $.FSRTC.validRes available globally

This commit is contained in:
Anthony Minessale
2015-08-28 14:11:03 -05:00
parent 35e503b72a
commit 8a1b75d1db
2 changed files with 5 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ var iceTimer;
var result = sdpLine.match(pattern);
return (result && result.length == 2) ? result[1] : null;
}
// Returns a new m= line with the specified codec as the first one.
function setDefaultCodec(mLine, payload) {
var elements = mLine.split(' ');
@@ -129,6 +129,8 @@ var iceTimer;
checkCompat();
};
$.FSRTC.validRes = [];
$.FSRTC.prototype.useVideo = function(obj, local) {
var self = this;
@@ -512,8 +514,6 @@ var iceTimer;
return {audio: audio, video: video, useVideo: useVideo};
}
$.FSRTC.prototype.call = function(profile) {
checkCompat();
@@ -1021,8 +1021,6 @@ var iceTimer;
return media;
}
$.FSRTC.validRes = [];
$.FSRTC.resSupported = function(w, h) {
for (var i in $.FSRTC.validRes) {
if ($.FSRTC.validRes[i][0] == w && $.FSRTC.validRes[i][1] == h) {