I just ran into the same problem.  It appears that sometimes two
netconnection objects are being created, so the video is actually being
streamed twice.  I think I found a quick fix, but I am still looking
into the root cause.  Here is the fix:

1. Keun Lee was nice enough to do a rewrite of VideoDisplay component
that allows you access the internals of this component.  You can
download it here: http://weblogs.thekeunster.com/?p=13
<http://weblogs.thekeunster.com/?p=13>

2. Open the VideoPlayer class and go to the createStream method (around
line 2700).

3.  Add an if statement that checks if the VideoPlayerNetStream object
has already been created.

      if (!ns)
          ns = new VideoPlayerNetStream(_ncMgr.netConnection, this);

This seems to have solved the problem, but I am sure the root cause is
happening further up.  When I get a little time I will do some more
debugging.

To get rid of the unhandled AsyncErrorEvent, open the
NCManagerConnectClient class and add

  public function streamInfo(... rest) : void
  {
  }

Regards,

Derek

www.flexonrails.net <http://www.flexonrails.net>


--- In [email protected], Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
>
> I've had significant problems with this. I actually had to re-work
> the video display component because the Flash Media Server was making
> a callback to the non-existent method "streamInfo".
>
> I can tell you that every time I hear double audio, that streamInfo
> method is called multiple times.
>
> Of course, I have no idea if this helps (probably not).
>
> At 11:28 PM 4/9/2007, justin_beckwith wrote:
>
> >I am having the same exact issue - occasional audio echo, and double
> >audio when scrubbing the play head - did anyone ever figure this out?
> >
> >- Justin
> >
> >--- In
> ><mailto:flexcoders%40yahoogroups.com>[email protected],
> >"jack_freud" jack_web@ wrote:
> > >
> > > I've tried it both ways and that doesn't seem to be the problem.
> > >
> > > The sound is actually playing twice simultaneously.
> > >
> > > Thanks,
> > >
> > > Jack
> > >
> > > --- In
> > <mailto:flexcoders%40yahoogroups.com>[email protected],
> > "Karl Johnson" <karl.johnson@>
> > > wrote:
> > > >
> > > > Do you have videoDisplay.autoPlay set to false? By default it is
> > > set to true so there is no need to call play after setting the
source
> > > because it will auto play after having its source set.
> > > >
> > > > Karl
> > > >
> > > > Cynergy
> > > >
> > > > ________________________________
> > > >
> > > > From:
> > <mailto:flexcoders%40yahoogroups.com>[email protected] on
> > behalf of jack_freud
> > > > Sent: Tue 2/20/2007 4:22 PM
> > > > To:
<mailto:flexcoders%40yahoogroups.com>[email protected]
> > > > Subject: [flexcoders] Video is playing "double"
> > > >
> > > >
> > > >
> > > > I'm stuck on a weird problem: I've created a component that
> > > contains a
> > > > VideoDisplay. When I set the source and call play(), about 1/2
the
> > > > time, it seems to be playing a 2nd copy of the video in the
> > > > background; at least the audio is doubled, causing an echo
effect
> > > with
> > > > a variable amount of delay between the 2.
> > > >
> > > > Has anyone else seen this kind of behavior? The videos are
streaming
> > > > flvs from a media server.
> > > >
> > > > Thanks so much!
> > > >
> > >
> >
> >
>
> --
> Jeffry Houser, Software Developer, Writer, Songwriter, Recording
Engineer
> AIM: Reboog711 | Phone: 1-203-379-0773
> --
> My Company: <http://www.dot-com-it.com>
> My Podcast: <http://www.theflexshow.com>
> My Blog: <http://www.jeffryhouser.com>
> Connecticut Macromedia User Group: <http://www.ctmug.com>
>


Reply via email to