When I say performance, I mean the video just freezes and
then plays back at super high speed etc.. Very erratic behavior.
The video quality looks OK. The audio example does work. But my
question was around how to use the audio with the webcam. Both of
the examples work individually. I just thought maybe I was doing
something wrong when using both of them together. As I have it now
it is really not very usable. The only changes I have made is by
not automatically putting everyone in the list to show. I let the
user select who he wants in his communication list/view. As stated
earlier, I just added the audioPub.publish and stop in the same
places as the video. Let me know if I can get you any other info
that may help.
Here is some code if that helps:
This is the same from the example:
cSession.roomManager.autoPromote = true ;
cSession.roomManager.guestsHaveToKnock = false ;
sharedProperty = new SharedProperty();
sharedProperty.isSessionDependent = true ;
sharedProperty.sharedID = "webcamShare2" ;
sharedProperty.connectSession = cSession ;
sharedProperty.subscribe();
sharedProperty.addEventListener(SharedPropertyEvent.CHANGE,
onChange);
Here is my container declaration:
<session:ConnectSessionContainer id="cSession"
authenticator="{auth}"
roomURL="
myroomurl" backgroundColor="#404040"
width="100%" height="100%">
<collaboration:WebcamPublisher id="webCamPub" width="10"
height="5" quality="70"/>
<collaboration:AudioPublisher id="audioPub" height="0"
useEchoSuppression="true"/>
<!-- only listen to the subscribers we have selected
-->
<collaboration:AudioSubscriber id="audioSub"
publisherIDs="{audioIds}"/>
<mx:Tile id="camTiles"
direction="horizontal"
height="100%"
width="100%"
alpha="0"
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
creationComplete="onCreationComplete()"
horizontalGap="10" verticalGap="10">
<mx:Repeater id="rp" dataProvider="{selectedUsers}">
<components:ResizableCanvas id="rs" width="100%"
height="100%"
minHeight="200" minWidth="200"
backgroundAlpha=".5"
backgroundColor="gray"
cornerRadius="12"
borderStyle="solid"
horizontalScrollPolicy="off" verticalScrollPolicy="off">
<collaboration:WebcamSubscriber
webcamPublisher="{webCamPub}"
width="100%" height="100%"
publisherIDs="{[rp.currentItem.userID]}"
click="onClick(event)"
userBooted="onBooted(event)"
streamChange="onCameraPause(event)"/>
</components:ResizableCanvas>
</mx:Repeater>
</mx:Tile>
</session:ConnectSessionContainer>
I wasn't venting by the way. I just wanted to find out how to
do this the correct way :-) Sorry if my post came off as
venting.