Philip Armstrong wrote:
> On Wed, Dec 06, 2006 at 04:45:12PM +0100, Duncan Webb wrote:
>> [EMAIL PROTECTED] wrote:
>>> I noticed that while watching live tv an hitting ch+ or ch-, freevo
>>> sends the quit command to mplayer and then reloads mplayer with the
>>> next/previous channel (causing a flicker of the screen). I am using a
>>> DVB card, and mplayer accepts the dvb_set_channel <channel_number>
>>> <card_number> command from stdin, so, is there a special reason freevo
>>> does not use this syntax for changing channel while in dvb mode? there
>>> is also a tv_set_channel <channel> for tv mode.
>> The code in src/tv/plugins/mplayer.py in the eventhandler at line: 253
>> need to be changed, I can't do this as I don't have a dvb card to test
>> against.
>>
>> elif self.current_vg.group_type == 'dvb':
>> self.Stop(channel_change=1)
>> self.Play('tv', nextchan)
>> return TRUE
>>
>> But is possible something like:
>>
>> elif self.current_vg.group_type == 'dvb':
>> if em.TV_CHANNEL_UP:
>> self.app.write('dvb_set_channel nextchan <card_number>\n')
>> else if em.TV_CHANNEL_DOWN:
>> self.app.write('dvb_set_channel nextchan <card_number>\n')
>
> I can give this a whirl, since I'm using mplayer & a dvb card.
>
> Will report back.
>
> cheers, Phil
>
It works!
Thanks to the patch Duncan send me I can now send the pause command to
mplayer. The same way I can solve my panscan issue. Thanks!
mplayer.py patch:
78a79
>
233,237d233
< elif event == em.PAUSE or event == em.PLAY:
< self.app.write('pause\n')
< if DEBUG: print '%s: sending pause to mplayer' % (time.time())
< return True
<
-------------------------------------------------------------------------
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