Skip to main content
Object404
Known Participant
May 5, 2006
Question

NetStream.Play.Stop problem

  • May 5, 2006
  • 4 replies
  • 659 views
Hi. I built a dynamic FLV player using XML playlists but using progressive downloads.

I've been trying to migrate it to a Flash Media Server 2.01 solution, but after I did,
"NetStream.Play.Stop" no longer seems to be happening properly.

Question 1: When I put the .FLV files to play in the "\streams\_definst_" of the application directory of the Flash Media Server installation, does that automatically turn it into streaming FLV and no longer progressive FLV?

Question 2: What's the best way to detect or to signal my app that the streaming FLV has completed playing?

Also, "NetStream.Play.Complete" never seems to occur, even if the stream has completed playing.

Thanks!
    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    Hasan Otuome
    Participating Frequently
    May 25, 2006
    Has worked for me...
    Inspiring
    May 9, 2006
    I have not tried it, but the Docs seem to indicate that is what it does.
    Note it is only available for FMS 2.

    --
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "naz404" <webforumsuser@macromedia.com> wrote in message
    news:e3mkb2$42f$1@forums.macromedia.com...
    Thanks for the reply.

    Looks like "NetStream.onPlayStatus" is the solution to my problem in trying
    to
    detect when an FLV stream has completely finished playing

    Anyone foresee any problems with this solution?


    Object404
    Object404Author
    Known Participant
    May 8, 2006
    Thanks for the reply.

    Looks like "NetStream.onPlayStatus" is the solution to my problem in trying to detect when an FLV stream has completely finished playing

    Anyone foresee any problems with this solution?
    Inspiring
    May 6, 2006
    Question 1: When I put the .FLV files to play in the "\streams\_definst_" of
    the application directory of the Flash Media Server installation, does that
    automatically turn it into streaming FLV and no longer progressive FLV?
    The distinction between progressive and streaming is the
    NetConnection.connect
    Question 2: What's the best way to detect or to signal my app that the
    streaming FLV has completed playing?
    Not sure what the best way is. But I subclass the NetStream class similarily
    to how it is presented in the Flash Communications Server book example 5-5.
    http://www.flash-communications.net/sourceCode/index.html

    It uses a combination of NetStream.Play.Stop and bufferLength == 0 as one
    signal to toggle a stopped state flag and NetStream.Buffer.Empty and that
    stopped flag as another signal. The stopped flag is turned off on the next
    NetStream.Play.Start.



    --
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "naz404" <webforumsuser@macromedia.com> wrote in message
    news:e3ffu4$a6c$1@forums.macromedia.com...
    Hi. I built a dynamic FLV player using XML playlists but using progressive
    downloads.

    I've been trying to migrate it to a Flash Media Server 2.01 solution, but
    after I did,
    "NetStream.Play.Stop" no longer seems to be happening properly.

    Question 1: When I put the .FLV files to play in the "\streams\_definst_"
    of
    the application directory of the Flash Media Server installation, does that
    automatically turn it into streaming FLV and no longer progressive FLV?

    Question 2: What's the best way to detect or to signal my app that the
    streaming FLV has completed playing?

    Also, "NetStream.Play.Complete" never seems to occur, even if the stream
    has
    completed playing.

    Thanks!