Expand my Community achievements bar.

Bad Name NetStream Publisher?

Avatar

Level 4

When I'm trying to publish both audio and video, sometimes it throws this error.

Would it have to do with the fact that I'm also trying to do private audio/video streams where I'm setting PublisherID's for both?

From my searches it seems like something to do with FMS but I dont seem to understand what I need to change in my code to make it work.

Here is an example:

if(!view.camPublisher.isPublishing){

     view.auditionCam.webcamPublisher = view.camPublisher;

     view.auditionCam.publisherIDs = [service.MyID];

     view.screenerCam.publisherIDs = [view.UserDesc.userID];

     view.camPublisher.publish();

     view.audioPublisher.publish();

     view.audioSub.publisherIDs = [view.UserDesc.userID];

     }else{

     view.camPublisher.stop();

     view.audioPublisher.stop();

}

as always thanks guys.

...russ

3 Replies

Avatar

Former Community Member

Hi,

You mean you are setting recipientIDs while sending the stream to make it private ? And whats the error you are getting ? Does it happen always or only sometimes ?

Can you send the error log from your FB console ?

Thanks

Hironmay Basu

Avatar

Level 4

So it seems to happen after I crash. I'm wondering if i need to turn on mulicasting?
This is before the crash
12:19:00 GMT-0500    The total stream limit for P2P streams have
12:19:00 GMT-0500    The total stream limit for P2P streams have
Error: Stream cannot be published as it doesnot exists
at com.adobe.rtc.sharedManagers::StreamManager/publishStream()
at com.adobe.rtc.collaboration::AudioPublisher/statusHandler() 
This happens after:  

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Publish.BadName

at com.adobe.rtc.collaboration::WebcamPublisher/createNetStream()

at com.adobe.rtc.collaboration::WebcamPublisher/onConnectionTypeChange()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at com.adobe.rtc.sharedManagers::StreamManager/findP2P()

at com.adobe.rtc.sharedManagers::StreamManager/onItemReceive()

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()

at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()

at com.adobe.rtc.session.managers::SessionManagerBase/receiveItem()

Thanks

...russ

Avatar

Level 4

Hi,

Update.

It doesn't just happen when I crash.

I'm trying to do a private stream beween two users, setting PublisherID's for each user. 

The second person to turn their camera on in that situation gets the Bad Name error.

Looking at the room console it looks like there is no stream with the users name before hand (camera:Russ) so once you click through the error window in flash player debugger its fine and creates the stream.

hope that helps.

...russ