Problems with AVCastManager

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

Posts: 10
Joined: 10 Dec 2010, 12:53

Problems with AVCastManager

Postby ojaro » 04 Jan 2011, 22:10

Hi all,

Appologies in advance if these questions are trivial, but I am not that familiar with flash/action script.

I have been trying to implement a voice chat room based on the examples available. Everything seems to be working fine, live casts are getting published and subscribed to, however I am not getting any sound through.

I have a feeling this might be because I am not attaching things correctly to my flash application.

What I am currently doing is:

1) Attaching the microphone on live cast publish as below:

Code: Select all

var mystream:NetStream = avCastMan.publishLiveCast(false, true);

2) Attaching subscriptions to an object in my flash application for each user in the chat as follows:

Code: Select all

for each (var liveCast:LiveCast in avCastMan.getAvailableCasts())
      var userstream:NetStream = avCastMan.subscribeLiveCast(;
      var soundContainer:Video = new Video(); = "user_" +;

Is that all I need to do or am I still missing out something else? Does the flash object I add the child to need to be some special type or does any object work?

Thanks for your help in advance,

User avatar
Site Admin
Posts: 4425
Joined: 29 Mar 2005, 09:50
Location: Italy

Postby Bax » 11 Jan 2011, 07:03

First of all, make sure the Flash Player is using the right microphone. Right-click on the swf running in the browser, choose "Settings" select the microphone tab and make sure the right device is selected in the dropdown.
Paolo Bax
The SmartFoxServer Team
Posts: 10
Joined: 10 Dec 2010, 12:53

Issue resolved

Postby ojaro » 11 Jan 2011, 07:20

Thanks for the reply.

I did figure it out in the end. The problem was that my flash application width was less than the dialogue with for the microphone access, hence flash decided to just mute the microphone, nice!

Not sure if this is a known flash issue, but if not then it looks like the minimum width for voice enabled flash application is 214px :)



Return to “RedBox”

Who is online

Users browsing this forum: No registered users and 1 guest