Author: duncan
Date: Sun Oct 29 09:30:31 2006
New Revision: 8500

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

Log:
[ 1582048 ] Detached Audo Player behavior changed from 1.5.x
Fix applied for mplayervis


Modified: branches/rel-1-6/freevo/src/audio/plugins/detach.py
==============================================================================
--- branches/rel-1-6/freevo/src/audio/plugins/detach.py (original)
+++ branches/rel-1-6/freevo/src/audio/plugins/detach.py Sun Oct 29 09:30:31 2006
@@ -1,4 +1,3 @@
-#if 0 /*
 # -----------------------------------------------------------------------
 # detach.py - Detach plugin for the audio player
 # -----------------------------------------------------------------------
@@ -27,7 +26,6 @@
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
 # -----------------------------------------------------------------------
-#endif
 
 
 import config
@@ -55,6 +53,14 @@
         gui  = audio.player.get()
 
         # hide the player and show the menu
+        mpav = plugin.getbyname( 'audio.mpav' )
+        if mpav:
+            mpav.stop_mpav()
+
+        mplvis = plugin.getbyname( 'audio.mplayervis' )
+        if mplvis:
+            mplvis.stop_visual()
+
         gui.hide()
         gui.menuw.show()
 
@@ -88,6 +94,7 @@
             if gui:
                 gui.player.eventhandler(Event('STOP'))
 
+
     def items(self, parent):
         gui = audio.player.get()
         if gui and gui.player.is_playing():
@@ -108,3 +115,11 @@
         # hide the menu and show the player
         menuw.hide()
         gui.show()
+        mpav = plugin.getbyname( 'audio.mpav' )
+        if mpav:
+            mpav.start_mpav()
+
+        mplvis = plugin.getbyname( 'audio.mplayervis' )
+        if mplvis:
+            mplvis.stop_visual()
+            mplvis.start_visual()

-------------------------------------------------------------------------
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