Author: fmueller
Date: Fri Apr  9 01:34:26 2010
New Revision: 8685

URL: http://svn.slimdevices.com/jive?rev=8685&view=rev
Log:
Bug: 15891 
Description: Make 'play' resume line in instead of switching to streaming 
music. 

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay_baby/share/applets/LineIn/LineInApplet.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay_baby/share/applets/LineIn/LineInApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay_baby/share/applets/LineIn/LineInApplet.lua?rev=8685&r1=8684&r2=8685&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay_baby/share/applets/LineIn/LineInApplet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay_baby/share/applets/LineIn/LineInApplet.lua
 Fri Apr  9 01:34:26 2010
@@ -188,6 +188,10 @@
                Player:getLocalPlayer():setCapturePlayMode("pause")
                return EVENT_CONSUME
        end
+       local playAction = function(self)
+               Player:getLocalPlayer():setCapturePlayMode("play")
+               return EVENT_CONSUME
+       end
        local nothingAction = function(self)
                return EVENT_CONSUME
        end
@@ -201,6 +205,7 @@
        table.insert(self.listenerHandles, Framework:addActionListener("mute", 
self, pauseAction, .5))
        table.insert(self.listenerHandles, Framework:addActionListener("pause", 
self, pauseAction, .5))
        table.insert(self.listenerHandles, Framework:addActionListener("stop", 
self, stopAction, .5))
+       table.insert(self.listenerHandles, Framework:addActionListener("play", 
self, playAction, .5))
        table.insert(self.listenerHandles, 
Framework:addActionListener("jump_rew", self, nothingAction, .5))
        table.insert(self.listenerHandles, 
Framework:addActionListener("jump_fwd", self, nothingAction, .5))
        table.insert(self.listenerHandles, 
Framework:addActionListener("scanner_rew", self, nothingAction, .5))

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to