Author: ayoung
Date: Fri Apr 8 01:20:31 2011
New Revision: 9411
URL: http://svn.slimdevices.com/jive?rev=9411&view=rev
Log:
Fixed bug 12199: Song position indicator snaps back to old position for a
moment upon seek
Mark the player as being in state waitingToPlay as soon as issuing a gototime
command to the server or upon registering a touch on the progress-bar slider.
This will defeat updates of the progress bar until the next (player)status
notification arrives, which should have the correct new time.
It is still possible to get a jump in the case that the Slider object has not
yet delivered the notification that it has been touched (debounce of
pseudo-mouse event), but this is pretty rare and only affects the touch
interface.
Modified:
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua
Modified:
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua?rev=9411&r1=9410&r2=9411&view=diff
==============================================================================
---
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++
7.6/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
Fri Apr 8 01:20:31 2011
@@ -1456,6 +1456,7 @@
self.progressSlider = Slider('npprogressB', 0, 100, 0,
function(slider, value, done)
+ self.player:setWaitingToPlay(1)
self.gotoElapsed = value
self.gotoTimer:restart()
end)
Modified: 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua?rev=9411&r1=9410&r2=9411&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua (original)
+++ 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua Fri Apr 8
01:20:31 2011
@@ -1512,6 +1512,11 @@
end
+function setWaitingToPlay(self, value)
+ self.waitingToPlay = value
+end
+
+
function getAlarmState(self)
return self.alarmState
end
@@ -1727,6 +1732,7 @@
self.trackTime = time
log:debug("Sending player:time(", time, ")")
self:send({'time', time })
+ self:setWaitingToPlay(1)
return nil
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins