[vlc-devel] [PATCH] Kasenna Trickplay support

Glen Gray glen at lincor.com
Thu Nov 10 19:06:54 CET 2005


The following patch adds support for trick play streams from Kasenna 
servers.

The date in the patch refer to the SVN checkout of vlc-trunk it is 
applied against.

PATCH 1:- kasenna_trickplay-20051021.diff
The first patch adds the trickplay support. It's based off a patch that 
Dermot (dermot at lincor.com) submitted at the start of the year. The rc 
interface fastforward and rewind commands are used to set the rate 
variable to what the user inputs. e.g. "fastforward 12" or "rewind 12" 
to play y the x12 FF/RW streams from the Kasenna. If those values are 
not passed and just the commands, then the rate is set to a flag value 
of INPUT_RATE_MAX/MIN. The setting of rate triggers a callback in 
src/input/input.c as before, however, in there, I make a call to the 
demux2Control to use SET_RATE. If this fails, it falls back to normal 
behaviour of setting the rate of play from the buffer.

In the modules/demux/livedotcom.cpp there's a new SET_RATE section to 
the Control function.
This pauses the stream, then restarts the stream with the scale value 
set to what was passed in with the fastforward command. If the values 
that where passed in match INPUT_RATE_MAX/MIN then a default scale 
factor of 30 is used. The Kasenna will choose the closest matching 
scale. By default it's 12x

-- 
Glen Gray <glen at lincor.com>              Digital Depot, Thomas Street
Senior Software Engineer                            Dublin 8, Ireland
Lincor Solutions Ltd.                          Ph: +353 (0) 1 4893682

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kasenna-trickplay_vlc-trunk-20051021.diff
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20051110/012b5cfb/attachment.ksh>


More information about the vlc-devel mailing list