mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
FS-8087 #comment make $.FSRTC.validRes available globally
This commit is contained in:
1 parent
35e503b72a
commit
8a1b75d1db
2 files changed
+5
-7
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user