On Wed, Dec 06, 2006 at 07:22:32PM +0100, S2 wrote:
> Philip Armstrong wrote:
> > I can give this a whirl, since I'm using mplayer & a dvb card.
> >
>
> 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
Attached is a more complete patch including the channel changes.
cheers, Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
--- freevo/tv/plugins/mplayer.py.old 2006-12-06 21:15:48.000000000 +0000
+++ freevo/tv/plugins/mplayer.py 2006-12-06 21:14:44.000000000 +0000
@@ -231,6 +231,11 @@
rc.post_event(em.PLAY_END)
return TRUE
+ 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
+
elif event in [ em.TV_CHANNEL_UP, em.TV_CHANNEL_DOWN] or s_event.startswith('INPUT_'):
if event == em.TV_CHANNEL_UP:
nextchan = self.fc.getNextChannel()
@@ -251,10 +256,12 @@
return
elif self.current_vg.group_type == 'dvb':
- self.Stop(channel_change=1)
- self.Play('tv', nextchan)
+ if em.TV_CHANNEL_UP:
+ self.app.write('dvb_set_channel nextchan 0\n')
+ elif em.TV_CHANNEL_DOWN:
+ self.app.write('dvb_set_channel nextchan 0\n')
return TRUE
-
+
elif self.current_vg.group_type == 'ivtv':
self.fc.chanSet(nextchan, True)
self.app.write('seek 999999 0\n')
-------------------------------------------------------------------------
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