How about something simple as this for an example
-----------------------------------------------------
//Stores the user's current Cpu Load
Var currentCPULoad;
//Have an array that stores all the supported Resolutions
storeListOfVideoResolutions [160x100,176x144,etc];
//Make the resolution start at the lowest option
var i =0;
var currentResolution = storeListOfVideoResolutions[i];
//Check to see if the video quality needs to be changed
//Either a timer or and eventlistener can be used here
//I have used a timer as an example
function Timer (Check every X number of seconds)
{
getFramsPerSecond();
getcpuLoad();
checkResolution ();
setResolution();
}
function getFramsPerSecond()
{
currentFramsPerSecond = the average user's frames per second over 5 seconds
}
function getcpuLoad()
{
currentCPULoad = the average user's CPU load over 5 seconds
}
function checkResolution ()
{
if (currentFramsPerSecond >= 25 && i != MAXResolutions && currentCPULoad
<= 80%)
{
i++
storeListOfVideoResolutions[i];
}
if (currentFramsPerSecond < 20 && i != 0 || currentCPULoad > 81% && i != 0
)
{
i--
storeListOfVideoResolutions[i];
}
}
function setResolution()
{
set the users Resolution to storeListOfVideoResolutions[i];
}
On Sun, Jul 27, 2014 at 5:13 AM, Lyubomir Marinov <
Post by some oneWhen will Jitsi be able to automatically adjust video and sound quality on
Post by some onethe fly (like skype)?
I'm unaware of current plans to support such functionality in Jitsi on
desktop.
I see this as a must have feature.
Please feel free to contribute an implementation.
_______________________________________________
users mailing list
http://lists.jitsi.org/mailman/listinfo/users