i solved the problem by ensuring that the
getSharedObject(room, "sampleSO");
took the same persitance param as the initial createSharedObject()
getSharedObject(room, "sampleSO", true );
createSharedObject(room, APP_NAME, true);
-lp
> red5-0.6rc1
>
>
> hi all
>
>
> i have read the docs/migration and src but having problems with
> roomConnect/roomJoin usage.
>
> what is the paradigm to take roomConnect parameters and set them in the
> relative SO?
>
> below are my steps of execuation.
>
> [1] roomStart( 'room1' )
> [2] roomConnect( 'room1' )
> [3] roomJoin( 'room1' )
> [4] roomDisconnect( 'room1' )
>
> [5] roomConnect( 'room1' )
> [6] roomJoin( 'room1' )
>
> from within my roomConnect i wish to take the connection parameters and
> use them on the relative SO visible in step[6]. However the
> getSharedObject() is return null on step [5].
>
>
> any help appreciated.
>
> my code is below.
>
> public boolean roomConnect(IConnection conn, Object[] params){
>
> super.roomConnect( conn, params);
>
> HashMap map = (HashMap)params[0];
>
> IScope room = conn.getScope();
> System.out.println( "TableApplication.roomConnect " + room );
>
> ISharedObject so = getSharedObject(room, "sampleSO");
> System.out.println( "TableApplication.roomConnect " + so );
>
> if( so != null ){
> so.beginUpdate();
> so.setAttribute( TableObjectListener.SEAT_ATT + map.get(
> TableObjectListener.SEAT_ATT ), map.get( TableObjectListener.PLAYER_ATT
> ) );
> so.endUpdate();
> }
>
> return true;
> }
>
>
>
> many thanks
>
> -lp
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
---------------------------------
Lucio Piccoli
Director
Asterisk-i Pty Ltd
Software Design-Develop-Deploy
www.asteriski.com
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org