};
function cleanShareCall(that) {
- that.refreshVideoResolution();
data.shareCall = null;
data.callState = 'active';
that.refreshDevices();
return {
data: data,
callState: callState,
- // changeData: changeData,
// Options to compose the interface.
videoQuality: videoQuality,
});
videoQuality.forEach(function(qual){
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;
}
}
data.instance.deviceParams({
useCamera: storage.data.selectedVideo,
useMic: storage.data.selectedAudio,
- resCheck: that.refreshVideoResolution
+ onResCheck: that.refreshVideoResolution
});
}
call: function(destination, callback) {
console.debug('Attempting to call destination ' + destination + '.');
- //this.refreshVideoResolution();
-
var call = data.instance.newCall({
destination_number: destination,
caller_id_name: data.name,
screenshare: function(destination, callback) {
console.log('share screen video');
- this.refreshVideoResolution();
-
var that = this;
getScreenId(function(error, sourceId, screen_constraints) {