Skip to main content
Inspiring
February 28, 2010
Question

Starting point of a video stream

  • February 28, 2010
  • 1 reply
  • 389 views

Hello,

I am wondering if this is at all possible in FMS.

I have been trying to do this locally on my machine by using the download simulator but the simulator doesnt seem to work especially when I give the player a 2GB file to load over a 14kbps connection, the file seems to load within a split second and absolutely no buffering occurs.

My problem below needs to be answered before I can persue and purchase and set up a web server to run FMS as a production server, but understandably I do not want to do this until I know it is possible to do what I want to do.

Anyway here goes, this is what I want to know if it is possible:

Let say I have put a 60min video on the server which I want to stream.  But I only want to stream the last 20mins of it.  Am I able to set the player to stream from the last 20mins and for there to be no progressive download required before?  I need the stream to start almost immediately from the start of the last 20mins and for it to continue plaing until the remainder of the video completes.  So essentially I only want to load a part of the movie into a stream and disgard the part of the movie I do not want to show.

Is this at all possible?

If so could you provide me with some code which would outline this.

Thank you

Lee

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 1, 2010

    Yes this is very much possible. You just need to issue play from correct point from your client. Say your video is of length 60 minutes that means its around 3600 seconds. You want clients to see last 20 minutes i.e only 1200 secs from end of file. So you need to issue play from 2400 seconds till end of file, this can be specified when you issue play on client side:-

    ns.play("myVideo",2400,-1,true)

    As far the need for stream to start immediately, you can set-up small buffer as per your need but i would suggest to set at least 2 secs buffer for smooth playback.

    Please let me know if you have more queries and hope the answer was helpful