Author: duncan
Date: Sun Oct 15 09:21:05 2006
New Revision: 8376

Modified:
   branches/rel-1-5/freevo/src/audio/plugins/detach.py

Log:
[ 1572472 ] detached music player & video/tv
Will stop the player when it recieves a VIDEO_START event


Modified: branches/rel-1-5/freevo/src/audio/plugins/detach.py
==============================================================================
--- branches/rel-1-5/freevo/src/audio/plugins/detach.py (original)
+++ branches/rel-1-5/freevo/src/audio/plugins/detach.py Sun Oct 15 09:21:05 2006
@@ -8,33 +8,6 @@
 # Todo:        
 #
 # -----------------------------------------------------------------------
-# $Log: detach.py,v $
-# Revision 1.14  2004/02/15 11:18:47  dischi
-# better detachbar plugin, does not need stuff in other files now
-#
-# Revision 1.13  2004/02/06 18:33:06  dischi
-# fix mimetype handling
-#
-# Revision 1.12  2004/01/25 20:16:04  dischi
-# add type back to the plugin item
-#
-# Revision 1.11  2003/12/15 03:53:18  outlyer
-# Added Viggo Fredriksen's very cool detachbar plugin... it shows a
-# mini-player in the bottom corner of the screen if you detach a music player.
-#
-# Revision 1.10  2003/12/10 19:07:42  dischi
-# no need for the eventhandler anymore
-#
-# Revision 1.9  2003/12/09 20:32:29  dischi
-# fix plugin to match the new player structure
-#
-# Revision 1.8  2003/09/20 09:42:32  dischi
-# cleanup
-#
-# Revision 1.7  2003/09/19 22:10:11  dischi
-# check self.player before using it
-#
-# -----------------------------------------------------------------------
 # Freevo - A Home Theater PC framework
 # Copyright (C) 2002 Krister Lagerstrom, et al. 
 # Please see the file freevo/Docs/CREDITS for a complete list of authors.
@@ -53,7 +26,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# ----------------------------------------------------------------------- */
+# -----------------------------------------------------------------------
 #endif
 
 
@@ -109,6 +82,10 @@
                     p.eventhandler(Event('PLAYLIST_NEXT',context='audio'))
                 elif event.arg=='PREV':
                     p.eventhandler(Event('PLAYLIST_PREV',context='audio'))
+        elif event == VIDEO_START:
+            gui = audio.player.get()
+            if gui:
+                gui.player.eventhandler(Event('STOP'))
 
     def items(self, parent):
         gui = audio.player.get()

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to