Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

roster not listing chat participants

Avatar

Level 4

ok so in my Model i am created a new ConnectSession and authing it thus:

_authenticator = new AdobeHSAuthenticator();

_authenticator.authenticationKey = _token;

_connectSession = new ConnectSession();
_connectSession.authenticator = _authenticator;

_connectSession.roomURL = _roomURL;

_connectSession.login();

then once that's all authed and logged in nicely, over in my view i'm creating a simple chat and a roster thus:

_chat = new SimpleChat();
_chat.connectSession = _connectSessionProxy.connectSession;
chatWrapper.addChild(_chat);

_roster = new Roster();
_roster.connectSession = _connectSessionProxy.connectSession;
_roster.subscribe();
chatParticipantsContainer.addChild(_roster);

both are created, both successfully added to the stage [and therefore both fully initialised] but only the SimpleChat is 'working'. i can invite others into my chat, we can chat, but we are never listed in the roster.

why's that then?

0 Replies

Avatar

Level 4

erm, so having not worked for 2 days, it just started working......................

i must have changed something......................

dunno wot......................

er......................

Avatar

Level 4

think it was because i was giving the roster an itemRenderer, assumig that'd be fine becaues it extended 'List'. what my client wants is... a simple list basically. what's the lowdown on styling a roster? or would i be better to listen to newUser events and roll my own itemRenderered list?

Avatar

Level 4

btw, fyi, the roster component just threw this error when i clicked the wee arrow to the right of a chat participants name:


TypeError: Error #2007: Parameter colors must be non-null.
    at flash.display::Graphics/beginGradientFill()
    at com.adobe.coreUI.controls::CustomMenu/updateDisplayList()[/Users/myrealname/Documents/Flex Builder 3/CocomoSDK_0.92/src/com/adobe/coreUI/controls/CustomMenu.as:224]
    at mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3280]
    at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:880]
    at mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5679]
    at com.adobe.rtc.pods::Roster/onShowMenu()[/Users/myrealname/Documents/Flex Builder 3/CocomoSDK_0.92/src/com/adobe/rtc/pods/Roster.as:530]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
    at com.adobe.rtc.pods.rosterClasses::UserItemRenderer/onMenuClick()[/Users/myrealname/Documents/Flex Builder 3/CocomoSDK_0.92/src/com/adobe/rtc/pods/rosterClasses/UserItemRenderer.as:363]

Avatar

Level 10

Hi,

I will run your example today and see why its not showing up participants in your case. Meanwhile, if you don't want menubuttons or headers inside the roster , you can turn them off. User _roster.showRoleHeaders = false and also _roster.showMenuButtons = false , when you create the roster.

I will check for the exception but you can try  this out meanwhile.

Thanks

Hironmay Basu

Avatar

Level 4

hironmay, i took this away:

_roster.itemRenderer = new ClassFactory(SomeItemRenderer);

away and it was fine

thanks for the tipoffs too.