identifies the remote video resolution from its stream name; previously it was parsing the stream name comparing the beginning of the stream name with the resolutions configured in the config.xml

it will enable third party applications, such as the Android client, to stream video with any resolutions
This commit is contained in:
Felipe Cecagno 2012-02-15 17:52:46 -02:00
parent 881dd7a4f2
commit 099c80c7aa

View File

@ -60,11 +60,9 @@ package org.bigbluebutton.modules.videoconf.business
[Bindable] public var resolutions:Array;
protected function getVideoResolution(stream:String):Array {
for each (var resStr:String in resolutions){
if (resStr == stream.substr(0, resStr.length))
return resStr.split( "x" );
}
return null;
// streamname: <width>x<height><userId>-<timestamp>
// example: 320x2405-1329334829687
return stream.substr(0, stream.split("-")[0].length - String(this.userId).length).split("x");
}
protected function get paddingVertical():Number {