bigbluebutton
bigbluebutton copied to clipboard
Remove the static rsl and make the libraries available in a single path in the server
Author Name: Felipe Cecagno (Felipe Cecagno) Original Redmine Issue: 1405, http://dev.mconf.org/redmine/issues/1405 Original Date: 2014-11-06 Original Assignee: Pedro Beschorner Marin
The idea is to make it work properly without the static rsl, but host the libraries in a single repository in the server so if Adobe's repository is unavailable, the .swz files will be loaded from the same path by all the swf files.
Original Redmine Comment Author Name: Pedro Beschorner Marin (Pedro Beschorner Marin) Original Date: 2014-11-21T15:15:20Z
Trying to compile the client without the static binding you will experience some problems:
1 - missing OSMF.swc in flex's frameworks/libs directory; This issue has several ways to be fixed. The ones I tried and worked were: downloadind OSMF.swc lib (http://sourceforge.net/projects/osmf.adobe/files/) and placing it in flex_home/frameworks/libs or commenting flex-config.xml lines where OSMF.swc is defined as a runtime shared library (witch I believe to be the last apropriate solution). This works because our bbb-client doesn't need this lib.
2 - the next problem were some Flex errors that are thrown when loading the dynamic RSL client we just built The obvious one was the #2032 stream error witch was caused by the missing .swf files in client: first I tried to get those .swf from the .swc files in flex_home/frameworks/libs. This is how is done in client-check but in this case I got a new Flex error #1001 digest mismatch. Probably there is a way (but I dont know if it's a simple way) to recalculate this digest values and make things work this way. then there is a simpler thing that can be done. In flex_home/frameworks/rsls there are all the .swf files we need to make the client work (framework, mx, rpc and chart). The easier solution is to copy those to the client folder where all the others .swf files are stored. I belive this is the easier way to do it because we dont need to change anything in build.xml nor in flex-config.xml files to make it work. Ill probably try to change this .swf files location to something like client/rsls/.
Original Redmine Comment Author Name: Pedro Beschorner Marin (Pedro Beschorner Marin) Original Date: 2014-11-25T13:09:11Z
Now ant builder will get flex-config.xml from flex_home. It will make some modifications in it adjusting some files path back to flex_home and setting rsl-url to a folder in the compiled client where we'll keep Flex swf files for the user to download when failover. Those swf files are copied directly from Flex's frameworks. Some considerations can be found here (look for those swf's compiling options): http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7add.html
So far I didn't find any restriction from adobe for hosting these swfs but it's something to make sure.
My branch is now in mconf repository: https://github.com/mconf/bigbluebutton/tree/090-runtime-shared-libraries