mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
FS-9281: Add support for QQVGA resolution in Verto
QQVGA is a standard 160x120 resolution, useful for cases of very slow upload bandwidth. Adds the resolution to the core FSRTC lib, and to the Verto video demo and Verto Communicator
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
/* Controllers */
|
||||
var videoQuality = [];
|
||||
var videoQualitySource = [{
|
||||
id: 'qqvga',
|
||||
label: 'QQVGA 160x120',
|
||||
width: 160,
|
||||
height: 120
|
||||
}, {
|
||||
id: 'qvga',
|
||||
label: 'QVGA 320x240',
|
||||
width: 320,
|
||||
@@ -35,6 +40,10 @@ var videoQualitySource = [{
|
||||
}, ];
|
||||
|
||||
var videoResolution = {
|
||||
qqvga: {
|
||||
width: 160,
|
||||
height: 120
|
||||
},
|
||||
qvga: {
|
||||
width: 320,
|
||||
height: 240
|
||||
@@ -910,7 +919,10 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
||||
storage.data.useDedenc = false;
|
||||
storage.data.vidQual = 'hd';
|
||||
|
||||
if (upBand < 512) {
|
||||
if (upBand < 256) {
|
||||
storage.data.vidQual = 'qqvga';
|
||||
}
|
||||
else if (upBand < 512) {
|
||||
storage.data.vidQual = 'qvga';
|
||||
}
|
||||
else if (upBand < 1024) {
|
||||
|
Reference in New Issue
Block a user