Yeah, we’re looking at improving the
media components for 2.0 to hopefully avoid issues like this.
Matt
Thanks for the reply,
When I use the "start" event to start
playing the attached swf, the
swf starts playing but the stream doesn't start
playing for a little
longer and since I am using the Media Component I
can't tell if its
buffering or doing what. I do know the play
head doesn't really start
playing until its done with what its doing (which
clearly looks like
buffering). So in short the
"start" event is fired but the video
doesn't play for a while. I had to end up
doing the syncing off the
change event which is not very reliable but is
doable. As when the
playHead moves the video really is playing.
But the other thing was (Non-Flex or Non-Media
components) articles I
saw about NetStream and streaming FLV had some
examples about showing
a loader during the buffering time with
netStream.onStatus. So I was
hoping for a easy way to get control of the
stream's instance to do
the normal FCS FLV streaming enhancements.
With Media components I
can't get figure out what is really related to
what and loose the
power of talking with FCS. I guess I will
have to ditch the Media
Components and create a custom component to use in
Flex to really get
it to work. A little disappointed.
--- In [email protected],
Matt Chotin <[EMAIL PROTECTED]> wrote:
> Hmm, in the code I wrote the
"start" event generally fired right
around the
> time things were ready to go. Even if I
called play(someNon0Time) start
> would fire when the buffer had reached the
point that I was ready to
play (I
> think).
>
>
>
> The instance is very buried in the code and
not really meant to be
exposed.
> I don't have any reliable way of telling you
what to look for.
>
>
>
> Matt
>
> _____
>
> From: [email protected]
[mailto:[email protected]]
> Sent: Wednesday, April 27, 2005 2:51 PM
> To: [email protected]
> Subject: [flexcoders] NetStream instance in
Media Components
>
>
>
>
> Is there a instance of NetStream or
PlayerNetStream in the Media
> Components? If not does the Media
Components create some instance of
> the NetStream or PlayerNetStream some where
else?
>
> The closest thing to FCS and Flex is:
> http://coenraets.com/viewarticle.jsp?articleId=90
> <http://coenraets.com/viewarticle.jsp?articleId=90>
>
> In his LiveMediaDisplay class he calls:
>
mx.controls.streamingmedia.PlayerNetStream.prototype.play
> = function (s)
>
{
>
super.setBufferTime(1);
>
super.play(s);
>
}
>
> I know this is not calling an instance but
overiding the play method
> of PlayerNetStream. But where is the
instance? super has to be
> referencing a instance some where right?
>
> What I am doing right now is I have a Media
Component (both Playback
> and the Display/Controller) that loads a FCS
streaming flv by
> setMedia, with a url like
rtmp://fcsserver/app/instance/some.flv. It
> loads the flv just fine, but the buffering is
causing me troubles. As
> the "start" event on the Media
Component doesn't relate to the
> buffering. Basically I am looking for
an event that really means the
> flv is ready to play, as I am trying to sync
some swf's to it.
>
>
>
>
>
>
>
>
> _____
>
> Yahoo! Groups Links
>
> * To visit your
group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/>
>
> * To
unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
>
> * Your use of
Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>
Terms of Service.
Yahoo! Groups Links
|