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:
parent
881dd7a4f2
commit
099c80c7aa
@ -60,11 +60,9 @@ package org.bigbluebutton.modules.videoconf.business
|
|||||||
[Bindable] public var resolutions:Array;
|
[Bindable] public var resolutions:Array;
|
||||||
|
|
||||||
protected function getVideoResolution(stream:String):Array {
|
protected function getVideoResolution(stream:String):Array {
|
||||||
for each (var resStr:String in resolutions){
|
// streamname: <width>x<height><userId>-<timestamp>
|
||||||
if (resStr == stream.substr(0, resStr.length))
|
// example: 320x2405-1329334829687
|
||||||
return resStr.split( "x" );
|
return stream.substr(0, stream.split("-")[0].length - String(this.userId).length).split("x");
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function get paddingVertical():Number {
|
protected function get paddingVertical():Number {
|
||||||
|
Loading…
Reference in New Issue
Block a user