I just figured out regarding connection scope of FMLE
So ... basically I connect to my App through FMLE:
URL: rtmp://crilance.loc/crilance_live.1.0/Crirus_Channel-crirus-pass-123-none
Scope name become Crirus_Channel-crirus-pass-123-none
Regular web connection scope name is Crirus_Channel and params are crirus, pass, 123, none
public boolean appConnect(IConnection conn, Object[] params) {
IScope scope = conn.getScope();
if(params.length==0){
//connection is through FMLE, we need to create params from URL
String connStr=scope.getName();//Crirus_Channel-crirus-pass-123-none
String[] para= connStr.split("-");
appScope.createChildScope(para[0]);//Crirus_Channel
scope = ScopeUtils.resolveScope(appScope, para[0]);//here we get the right scope web connect would use
Object[] prms=new Object[4];
prms[0]= (String)para[1];
prms[1] = (String)para[2];
prms[2] = (String)para[3];
prms[3] = (String)para[4];
Boolean res= conn.connect(scope, prms);//forward connection to this scope we created or if already there we just found it
return res;
}else{
//regular web connection
//above conn.connect will end up here since it's called with parameters and the scope is right this time... hooray
....
}
}
If you want to change stream scope maybe you can change connection scope first then stream published will be in the right scope.
Goorus, let me know if there is any flaw here :)
Thanks
---------------------------------------------------------------
Cristian Rusu
Web Developement & Electronic Publishing
======
Crilance.com
Crilance.blogspot.com