Feature Proposal: Viewfile could usefully support the Http GET "Range" header

Motivation

When, for instance, a video file (eg .rm file) is attached, and referred to by a .ram file that includes a start time, most viewers will attempt to skip to the right place in the video by using the Range header in the HTTP request. This works fine without viewfile, but with viewfile, the Range header is ignored, leading to some viewers starting always from time=0, and others spending unnecessary time seeking through the data.

Description and Documentation

It would be very useful for lib/Foswiki/UI/Viewfile.pm to look for a Range header in the HTTP request, and if it exists, to produce appropriately selected output and return 206 instead of 200.

Examples

Impact

WhatDoesItAffect? : %WHATDOESITAFFECT%

Implementation

-- Contributors: PatrickGosling - 06 Oct 2009

Discussion

What about "not redirecting" .ram files through viewfile? Well, this circumvents access policies...

-- OliverKrueger - 07 Oct 2009
Topic revision: 07 Oct 2009, OliverKrueger
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads