Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv19203

Modified Files:
        videoitem.py 
Log Message:
Bookmarks are working now.

Usage:
    1. while watching a movie file, hit the 'record' button and it'll save a
    bookmark. There is no visual feedback though.
    2. Later, to get back there, choose the actions button in the menu, and it'll
    have a list of bookmarks in a submenu, click on one of those to resume from
    where you saved.

    The bookmarks do work for multiple AVI's together, though the time shown in the
    menu will be the time for the individual file, not the aggregate.

TODO:
    For multi-part files (i.e. two AVI's together via an XML file) it would be
    nice to be able to choose which one. I added a menu item (commented out now)
    until I can figure out how to pass self.play a specific filename.



Index: videoitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/videoitem.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** videoitem.py        17 Mar 2003 18:54:45 -0000      1.21
--- videoitem.py        17 Mar 2003 19:22:31 -0000      1.22
***************
*** 10,13 ****
--- 10,31 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.22  2003/03/17 19:22:31  outlyer
+ # Bookmarks are working now.
+ #
+ # Usage:
+ #     1. while watching a movie file, hit the 'record' button and it'll save a
+ #     bookmark. There is no visual feedback though.
+ #     2. Later, to get back there, choose the actions button in the menu, and it'll
+ #     have a list of bookmarks in a submenu, click on one of those to resume from
+ #     where you saved.
+ #
+ #     The bookmarks do work for multiple AVI's together, though the time shown in the
+ #     menu will be the time for the individual file, not the aggregate.
+ #
+ # TODO:
+ #     For multi-part files (i.e. two AVI's together via an XML file) it would be
+ #     nice to be able to choose which one. I added a menu item (commented out now)
+ #     until I can figure out how to pass self.play a specific filename.
+ #
  # Revision 1.21  2003/03/17 18:54:45  outlyer
  # Some changes for the bookmarks
***************
*** 234,242 ****
              for m in self.subitems:
                  # Allow user to watch one of the subitems instead of always both
!                 items += [( self.play, 'Play %s' % (m.filename))]
                  if os.path.exists(util.get_bookmarkfile(m.filename)):
                      myfilename = util.get_bookmarkfile(m.filename)
                      self.current_subitem = myfilename
!                     items += [( self.bookmark_menu, 'Bookmark list %s' % 
(myfilename))]
          return items
  
--- 252,260 ----
              for m in self.subitems:
                  # Allow user to watch one of the subitems instead of always both
!                 #items += [( self.play, 'Play %s' % (os.path.basename(m.filename)))] 
 # XXX Doesn't work
                  if os.path.exists(util.get_bookmarkfile(m.filename)):
                      myfilename = util.get_bookmarkfile(m.filename)
                      self.current_subitem = myfilename
!                     items += [( self.bookmark_menu, 'Bookmark: %s' % 
(os.path.basename(m.filename)))]
          return items
  
***************
*** 257,260 ****
--- 275,279 ----
          if self.subitems:
              self.current_subitem = self.subitems[0]
+             self.current_subitem.mplayer_options = self.mplayer_options # Pass along 
the options
              self.current_subitem.play(arg, menuw)
              return




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to