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

SOLVED

Multiple clients connected to LocalConnectionServer

Avatar

Level 3
I'm trying to use the LocalConnection example application to
test a few scenarios for Cocomo, and I'm unable to run more than
one client instance on the same computer. Once the exception
occurs, the entire state of the system seems to be unstable, and I
have to restart the LocalConnectionServer. For specifics, it gacks
on the startup of the second client with the following exception:



ReferenceError: Error #1065: Variable flash.media::SoundCodec
is not defined.

at com.adobe.rtc.clientManagers::MicrophoneManager/get
selectedMic()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\MicrophoneManager.as:155]

at com.adobe.rtc.clientManagers::MicrophoneManager/set
_1703516469micIndex()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\MicrophoneManager.as:121]

at com.adobe.rtc.clientManagers::MicrophoneManager/set
micIndex()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\MicrophoneManager.as:117]

at
com.adobe.rtc.clientManagers::MicrophoneManager()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\MicrophoneManager.as:77]

at
com.adobe.rtc.clientManagers::MicrophoneManager$/getInstance()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\clientManagers\MicrophoneManager.as:88]

at
com.adobe.rtc.sharedManagers::StreamManager/findCodec()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\sharedManagers\StreamManager.as:1839]

at
com.adobe.rtc.sharedManagers::StreamManager/onUserAdd()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\sharedManagers\StreamManager.as:1811]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at
com.adobe.rtc.sharedManagers::UserManager/userReceivedOrEdited()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\sharedManagers\UserManager.as:988]

at
com.adobe.rtc.sharedManagers::UserManager/onItemReceive()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\sharedManagers\UserManager.as:841]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at com.adobe.rtc.sharedModel::CollectionNode/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[C:\work\main\connect\coco...

at com.adobe.rtc.messaging.manager::MessageManager/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[C:\work\main\connect\coco...

at com.adobe.rtc.messaging.manager::MessageManager/
http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItems()[C:\work\main\connect\coc...

at
com.adobe.rtc.session.managers::SessionManagerBase/receiveItems()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\session\managers\SessionManagerBase.as:374]

1 Accepted Solution

Avatar

Correct answer by
Level 10
Hi Rick,



From the looks of it, you're compiling against the FP10 swc,
but haven't set your project to require Flash Player 10 - the
exception is referring to player internals. If you look at Project
Properties->Flex Compiler, is your "Require Flash Player
Version" set to 10.0.0 or higher?



thanks

nigel

View solution in original post

4 Replies

Avatar

Level 3
Update: The same behavior occurs attempting to load two
clients that are connecting to the Adobe hosted servers as well. It
is definitely a "client" issue.

Avatar

Correct answer by
Level 10
Hi Rick,



From the looks of it, you're compiling against the FP10 swc,
but haven't set your project to require Flash Player 10 - the
exception is referring to player internals. If you look at Project
Properties->Flex Compiler, is your "Require Flash Player
Version" set to 10.0.0 or higher?



thanks

nigel

Avatar

Level 3
Hi, Nigel.



I did have it at 9.X.X, but when attempting to change it to
10.0.0 (using Flex SDK 3.1), it could no longer compile since it
couldn't find the playerglobal.swc for flash viewer 10. I switched
over to Flex SDK 4.0 and it compiled and ran flawlessly.



Thanks!



Rick



Rick

Avatar

Level 10
Hi Rick,



Yes you need to a have Flex SDK targetting player 10 for
getting the correct playerglobal.swc. It can be either Flex SDK 4.0
build or Flex SDK 3.0 build that support player 10.



Thanks

Hironmay