Over the weekend someone came by with a CD with .avi and subtitles.

Freevo correctly displayed the subtitles, good technical test succeeded however now I want to get rid of them...

So I looked around the 1.5.2 code and found two minor patches that make life much more pleasurable.

patch event.py

so the video_events read:

VIDEO_EVENTS = {
    'PLAY'      : PLAY,
    'PAUSE'     : PAUSE,
    'STOP'      : STOP,
    'EXIT'      : STOP,
    'UP'        : PLAYLIST_PREV,
    'DOWN'      : PLAYLIST_NEXT,
    'CH+'       : PLAYLIST_PREV,
    'CH-'       : PLAYLIST_NEXT,
    'LEFT'      : Event(SEEK, arg=-60),
    'RIGHT'     : Event(SEEK, arg=60),
    'REW'       : Event(SEEK, arg=-10),
    'FFWD'      : Event(SEEK, arg=10),
    'MENU'      : MENU,
    'DISPLAY'   : TOGGLE_OSD,
    'SUBTITLE'  : VIDEO_NEXT_SUBTITLE,
    'REC'       : STORE_BOOKMARK,
    '0'         : VIDEO_MANUAL_SEEK
    }

and patch mplayer.py in video/plugins to read:

            if p.eventhandler(event):
                return True

        if event==VIDEO_NEXT_SUBTITLE:
                self.app.write('sub_visibility\n')
                return True

        if event == VIDEO_MANUAL_SEEK:

4 lines gives more usability....

--
Paul Sijben             mailto:[EMAIL PROTECTED]
Amersfoort, NL          http://www.sijben.net
tel:+31 334557522       fax:+31 33 4557523


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to