Update of /cvsroot/freevo/kaa/mplayer/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2233/test

Modified Files:
        mplayer.py 
Log Message:
Sync demo with api changes


Index: mplayer.py
===================================================================
RCS file: /cvsroot/freevo/kaa/mplayer/test/mplayer.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mplayer.py  2 Aug 2005 02:57:11 -0000       1.1
--- mplayer.py  2 Aug 2005 19:58:01 -0000       1.2
***************
*** 4,8 ****
  import kaa.mplayer
  from kaa.mplayer import MPlayer
! from kaa import display, main
  import sys
  
--- 4,8 ----
  import kaa.mplayer
  from kaa.mplayer import MPlayer
! from kaa import display, main, notifier
  import sys
  
***************
*** 13,17 ****
          mp.pause()
      elif key == "q":
!         mp.quit()
      elif key in ("up", "down", "left", "right"):
          mp.seek({"up": 60, "down": -60, "left": -10, "right": 10}[key])
--- 13,17 ----
          mp.pause()
      elif key == "q":
!         sys.exit(0)
      elif key in ("up", "down", "left", "right"):
          mp.seek({"up": 60, "down": -60, "left": -10, "right": 10}[key])
***************
*** 22,32 ****
  def dump_info(mp):
      print "Movie now playing:"
!     for key, value in mp.info.items():
          print "   %s: %s" % (key.rjust(10), str(value))
  
      print "Keys: space - toggle pause | q - quit | arrows - seek | f - 
fullscreen"
  
! mp = MPlayer((640, 480))
! mp.play(sys.argv[1])
  mp.get_window().signals["key_press_event"].connect(handle_key, mp)
  kaa.signals["stdin_key_press_event"].connect(handle_key, mp)
--- 22,32 ----
  def dump_info(mp):
      print "Movie now playing:"
!     for key, value in mp.get_file_info().items():
          print "   %s: %s" % (key.rjust(10), str(value))
  
      print "Keys: space - toggle pause | q - quit | arrows - seek | f - 
fullscreen"
  
! mp = MPlayer((800, 600))
! print mp.play(sys.argv[1])
  mp.get_window().signals["key_press_event"].connect(handle_key, mp)
  kaa.signals["stdin_key_press_event"].connect(handle_key, mp)



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to