FS-8092 [verto_communicator] If there is no data in localStorage, select best resolution for selected camera.
This commit is contained in:
parent
181a97ca8d
commit
42d1c0c0de
|
@ -30,7 +30,7 @@
|
||||||
mirrorInput: false,
|
mirrorInput: false,
|
||||||
outgoingBandwidth: 'default',
|
outgoingBandwidth: 'default',
|
||||||
incomingBandwidth: 'default',
|
incomingBandwidth: 'default',
|
||||||
vidQual: 'qvga',
|
vidQual: undefined,
|
||||||
askRecoverCall: false,
|
askRecoverCall: false,
|
||||||
googNoiseSuppression: false,
|
googNoiseSuppression: false,
|
||||||
googHighpassFilter: false,
|
googHighpassFilter: false,
|
||||||
|
|
|
@ -123,7 +123,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||||
};
|
};
|
||||||
|
|
||||||
function cleanShareCall(that) {
|
function cleanShareCall(that) {
|
||||||
that.refreshVideoResolution();
|
|
||||||
data.shareCall = null;
|
data.shareCall = null;
|
||||||
data.callState = 'active';
|
data.callState = 'active';
|
||||||
that.refreshDevices();
|
that.refreshDevices();
|
||||||
|
@ -193,7 +192,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||||
return {
|
return {
|
||||||
data: data,
|
data: data,
|
||||||
callState: callState,
|
callState: callState,
|
||||||
// changeData: changeData,
|
|
||||||
|
|
||||||
// Options to compose the interface.
|
// Options to compose the interface.
|
||||||
videoQuality: videoQuality,
|
videoQuality: videoQuality,
|
||||||
|
@ -306,7 +304,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||||
});
|
});
|
||||||
videoQuality.forEach(function(qual){
|
videoQuality.forEach(function(qual){
|
||||||
if (w === qual.width && h === qual.height) {
|
if (w === qual.width && h === qual.height) {
|
||||||
if (storage.data.vidQual !== qual.id) {
|
if (storage.data.vidQual !== qual.id || storage.data.vidQual === undefined) {
|
||||||
storage.data.vidQual = qual.id;
|
storage.data.vidQual = qual.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -534,7 +532,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||||
data.instance.deviceParams({
|
data.instance.deviceParams({
|
||||||
useCamera: storage.data.selectedVideo,
|
useCamera: storage.data.selectedVideo,
|
||||||
useMic: storage.data.selectedAudio,
|
useMic: storage.data.selectedAudio,
|
||||||
resCheck: that.refreshVideoResolution
|
onResCheck: that.refreshVideoResolution
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -586,8 +584,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||||
call: function(destination, callback) {
|
call: function(destination, callback) {
|
||||||
console.debug('Attempting to call destination ' + destination + '.');
|
console.debug('Attempting to call destination ' + destination + '.');
|
||||||
|
|
||||||
//this.refreshVideoResolution();
|
|
||||||
|
|
||||||
var call = data.instance.newCall({
|
var call = data.instance.newCall({
|
||||||
destination_number: destination,
|
destination_number: destination,
|
||||||
caller_id_name: data.name,
|
caller_id_name: data.name,
|
||||||
|
@ -621,8 +617,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||||
screenshare: function(destination, callback) {
|
screenshare: function(destination, callback) {
|
||||||
console.log('share screen video');
|
console.log('share screen video');
|
||||||
|
|
||||||
this.refreshVideoResolution();
|
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
getScreenId(function(error, sourceId, screen_constraints) {
|
getScreenId(function(error, sourceId, screen_constraints) {
|
||||||
|
|
Loading…
Reference in New Issue