Stephen Rowles wrote:
> Hi all,
> 
> I use a MS remote (version 2), which has separate fast forward/rewind
> and skip/replay.
> 
> I wanted to have the ability to fast forward as well as skip in time.
> Having changed event.py and xine.py to make the changes. skip / reply
> still uses the SEEK event, where as fast forward and rewind now use the
> new SPEED event instead. This means I can now fast forward and re-wind
> recordings as well as skipping by a minute.
> 
> I also removed the 30 limit from xine.py to allow me to skip forward
> greater amounts. I had tried to get xine to skip 5 minutes by passing in
> 300 seconds, but it won't play ball with any value greater than 60 :(
> 
> I've attached my changes as patches to 1.6.2 (the version I am running)
> in case people would find them useful. There is also a spurious edit to
> xine.py  I needed to do to make the post play commands work. But I
> didn't know how to remove it.
> 
> 2 diffs:
> 
> /usr/lib/python2.4/site-packages/freevo/video/plugins/xine.py
> and
> /usr/lib/python2.4/site-packages/freevo/event.py
> 
> I'm not great with patches - I can send the real files if needed :D

I think that you will find it easier if you use the svn version of freevo.

It's really easy to do:
# svn co svn://svn.freevo.org/freevo/branches/rel-1/freevo freevo-1.x
# cd to freevo-1.x
copy you files over on top of the existing ones, test it and type
# svn diff > xine-seek-event.patch

Then you will get a nice unified diff patch, which can be easily applied
to the source.

BTW I won't apply features to 1.6, this branch is only for bug fixes.

Cheers,
Duncan

> 
> ------------------------------------------------------------------------
> 
> 143d142
> <
> 150d148
> <
> 182a181,187
>>         execute commands if defined
>>         """
>>         if config.VIDEO_POST_PLAY != '':
>>             if self.item.mode == 'dvd':
>>                 os.system( config.VIDEO_POST_PLAY )
>>
>>         """
> 202c207
> <         if event == PAUSE or event == PLAY:
> ---
>>         if event == PAUSE:
> 205a211,214
>>       if event == PLAY:
>>             self.app.write('SpeedReset\n')
>>             return True
>>
> 221,222d229
> <             else:
> <                 pos = 30
> 225a233,240
>>       if event == SPEED:
>>           dir = event.arg
>>           if dir == '+':
>>                 self.app.write('SpeedFaster\n')
>>             else:
>>                 self.app.write('SpeedSlower\n')
>>           return True
>>
> 323a339,350
>>       if event == MIXER_VOLUP:
>>             if self.item.mode == 'dvd':
>>                 if config.VIDEO_VOL_UP_CMD != '':
>>                     os.system( config.VIDEO_VOL_UP_CMD )
>>                     return True
>>
>>         if event == MIXER_VOLDOWN:
>>             if self.item.mode == 'dvd':
>>                 if config.VIDEO_VOL_DOWN_CMD != '':
>>                     os.system( config.VIDEO_VOL_DOWN_CMD )
>>                     return True
>>
> 
> 
> ------------------------------------------------------------------------
> 
> 154a155
>> SPEED                = Event('SPEED')
> 319,320c320,323
> <     'REW'       : Event(SEEK, arg=-10),
> <     'FFWD'      : Event(SEEK, arg=10),
> ---
>>     'REPLAY'    : Event(SEEK, arg=-60),
>>     'SKIP'      : Event(SEEK, arg=60),
>>     'REW'       : Event(SPEED, arg='-'),
>>     'FFWD'      : Event(SPEED, arg='+'),
> 345,346c348,351
> <     'REW'       : Event(SEEK, arg=-10),
> <     'FFWD'      : Event(SEEK, arg=10),
> ---
>>     'REPLAY'    : Event(SEEK, arg=-60),
>>     'SKIP'      : Event(SEEK, arg=60),
>>     'REW'       : Event(SPEED, arg='-'),
>>     'FFWD'      : Event(SPEED, arg='+'),
> 366,367c371,374
> <     'REW'       : Event(SEEK, arg=-10),
> <     'FFWD'      : Event(SEEK, arg=10),
> ---
>>     'REPLAY'    : Event(SEEK, arg=-60),
>>     'SKIP'      : Event(SEEK, arg=60),
>>     'REW'       : Event(SPEED, arg='-'),
>>     'FFWD'      : Event(SPEED, arg='+'),
> 384,385c391,394
> <     'REW'       : Event(SEEK, arg=-10),
> <     'FFWD'      : Event(SEEK, arg=10),
> ---
>>     'REPLAY'    : Event(SEEK, arg=-60),
>>     'SKIP'      : Event(SEEK, arg=60),
>>     'REW'       : Event(SPEED, arg='-'),
>>     'FFWD'      : Event(SPEED, arg='+'),
> 409,410c418,421
> <     'REW'       : Event(SEEK, arg=-10),
> <     'FFWD'      : Event(SEEK, arg=10),
> ---
>>     'REPLAY'    : Event(SEEK, arg=-60),
>>     'SKIP'      : Event(SEEK, arg=60),
>>     'REW'       : Event(SPEED, arg='-'),
>>     'FFWD'      : Event(SPEED, arg='+'),
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Freevo-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freevo-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to