Expand my Community achievements bar.

AudioPublisher throws AsyncErrorEvent

Avatar

Former Community Member

I have encountered very odd issue. While screen sharing is working and on receiving side I call "audioPublisher.publish()" method, I get following error:

ReferenceError: Error #1069: Property cursorData not found on flash.net.NetStream; and there is no default value.

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback cursorData. error=ReferenceError: Error #1069: Property cursorData not found on flash.net.NetStream; and there is no default value.

at com.adobe.rtc.collaboration::AudioPublisher/onStreamReceive()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10/src/com/adobe/rtc/collaboration/AudioPublisher.as:871]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at com.adobe.rtc.sharedManagers::StreamManager/onItemReceive()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10/src/com/adobe/rtc/sharedManagers/StreamManager.as:1802]

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()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10/src/com/adobe/rtc/sharedModel/CollectionNode.as:777]

at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10/src/com/adobe/rtc/messaging/manager/MessageManager.as:718]

at com.adobe.rtc.session.managers::SessionManagerBase/receiveItem()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10/src/com/adobe/rtc/session/managers/SessionManagerBase.as:413]

This issue can be easily reproduced using following very simple example:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:rtc="http://ns.adobe.com/rtc" xmlns:collaboration="com.adobe.rtc.collaboration.*">
<fx:Declarations>
<rtc:AdobeHSAuthenticator id="auth" userName="username" password="password"/>
</fx:Declarations>
<rtc:ConnectSessionContainer backgroundAlpha="0.0" roomURL="rooom url" id="cSession" authenticator="{auth}" width="100%" height="100%">
<mx:Canvas width="100%" height="100%">
<rtc:ScreenSharePublisher id="sspublisher" playerVersion="10"/>
<rtc:AudioPublisher id="audioPublisher"/>
<rtc:AudioSubscriber id="audioSubscriber"/>
<collaboration:ScreenShareSubscriberComplex width="800" height="800" id="subscriberComplex"/>
<mx:VBox right="0" top="0">
<s:Button label="Start Audio" click="audioPublisher.publish()"/>
<mx:HRule width="100%"/>
<mx:Button id="startss_bt" label="Start Screen Sharing" click="sspublisher.publish()"/>
</mx:VBox>
</mx:Canvas>
</rtc:ConnectSessionContainer>
</s:Application>
Steps to reproduce: 1. Launch 2 instances of application. 2. In first instance click on "Start Screen Sharing". 3. In second instance click on "Start Audio" and you will get error.
Please let me know what is wrong here, may be there are some workarounds to this issue.

Best Regards, Aleksey

4 Replies

Avatar

Former Community Member

Hi Aleksey,

That is definitely pretty reproducible =). I'm looking into it.

thanks

nigel

Avatar

Former Community Member

Hi there,

At first glance, this seems to be a very strange player bug. I've

discovered that this doesn't happen if you're not streaming the audio P2P.

Here's a workaround you can use until I've figured out a little more :

Added an init method to set the max number of streams p2p can support to 0,

so it's always hub and spoke :

<fx:Script>

<![CDATA[

protected function init():void

{

cSession.streamManager.maxP2PStreamPublish = 0;

}

]]>

</fx:Script>

Triggered the init method from the Canvas' creationComplete :

<mx:Canvas width="100%" height="100%" creationComplete="init();">

nigel

Avatar

Former Community Member

Hi Aleksey,

Yes, unfortunately, this is a bug in the Player. We're following up with

that team, but it may be quite a while for your fix (Player updates don't

happen anywhere near as often as LCCS updates). In the meantime, the

workaround above should still do the trick.

nigel