« Previous Next »

Thread: Skipping forward (seeking)

Last post 10-29-2009 3:14 AM by saasheim. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 09-02-2009, 5:44 PM

    • dbukhan
    • Not Ranked
    • Joined on 06-20-2009, 2:25 PM
    • Posts 3

    Skipping forward (seeking)

    I remember reading that IIS7 supports seeking in the file that is being played before it downloads the whole file. As I remember the client sends GET requests for byte ranges corresponding to a seek position and the server serves the requested range.

    I was testing it today with a Windows Media Player 11 and skipping forward was not working until the whole file was in the local cache. IIS Media Pack is installed.

    Does it work with a Silverlight player only and not with a Win Media Player? Or am I missing something on the server side?

    Thanks,

    David

    David Bukhan
  • 09-04-2009, 5:04 PM In reply to

    Re: Skipping forward (seeking)

    What kind of media files are you using?  Can you post a link to one that we can look at?

  • 09-28-2009, 7:42 PM In reply to

    • prakashd
    • Top 200 Contributor
    • Joined on 10-16-2007, 7:33 PM
    • Redmond
    • Posts 29

    Re: Skipping forward (seeking)

    Are you using a playlist to play the file?

  • 10-28-2009, 12:59 PM In reply to

    • saasheim
    • Not Ranked
    • Joined on 05-23-2007, 8:49 AM
    • Posts 3

    Re: Skipping forward (seeking)

    Hi,

    We would like to do something similar. We use mp4-files.

    Our player (jwplayer) can be configured to send different parameters with the get-request, eg: file.mp4?start=34 to skip the first 34 seconds of the file (before the file is downloaded).

    What is the correct parameter when IIS serves the file?

    Steinar

  • 10-28-2009, 8:53 PM In reply to

    Re: Skipping forward (seeking)

    IIS accepts the standard HTTP byte range requests: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html section 14.35.1 and 14.35.2.  A example would be having the request header

    Range: bytes=2000-3000 

    Basically your player needs to figure out the byte offsets for desired time points according the media file's metadata. 

  • 10-29-2009, 3:14 AM In reply to

    • saasheim
    • Not Ranked
    • Joined on 05-23-2007, 8:49 AM
    • Posts 3

    Re: Skipping forward (seeking)

     "Basically your player needs to figure out the byte offsets for desired time points according the media file's metadata. "

    Any ideas on how to do that?

    A way to solve mye problem could be that my player still sends the request file.mp4?start=60 to IIS.

    I build a handler in IIS that maps start=xx to the correct byte-range.

    I (hopefully) get the right content to the player...

    But, how do I calculate the byte-range?

Page 1 of 1 (6 items)
Microsoft Communities