Bug 328 - After pause-play from web-ui is track restarted, but progress bar remains at old position or jumps to random position
: After pause-play from web-ui is track restarted, but progress bar remains at ...
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 5.x or older
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-30 06:32 UTC by Roland Fischer
Modified: 2008-12-18 11:54 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
Example where the realpos jumps to a strange value (16.61 KB, text/plain)
2004-05-30 06:34 UTC, Roland Fischer
Details
Example where the realpos jumps to a strange value (16.61 KB, text/plain)
2004-05-30 06:34 UTC, Roland Fischer
Details
Example 2 where the realpos jumps to a strange value (19.30 KB, text/plain)
2004-05-30 06:36 UTC, Roland Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Fischer 2004-05-30 06:32:49 UTC
When I pause the the currently playing song and unpause it with the play
button in the web interface the song starts at the beginning (and this is a
different behaviour than with the remote - there it's just a resume at the
current position) but the progress bar stays at the old position or jumps to
a random value in the future.
I can't really reproduce the jump to the future, but take a look at the
attached logfile (and the realpos after switching from pause to play).

You need to decide if the behaviour with remote and web should be the same
or not.

Pause/unpause with the pause key works as expected, so the error may be in
the "Switching to mode play from pause" function (because unpause with the
pause key uses "Switching to mode resume from pause")

Regards, Roland Fischer
Comment 1 Roland Fischer 2004-05-30 06:34:16 UTC
Created attachment 37 [details]
Example where the realpos jumps to a strange value
Comment 2 Roland Fischer 2004-05-30 06:34:43 UTC
Created attachment 38 [details]
Example where the realpos jumps to a strange value
Comment 3 Roland Fischer 2004-05-30 06:36:59 UTC
Created attachment 39 [details]
Example 2 where the realpos jumps to a strange value
Comment 4 Blackketter Dean 2004-06-17 12:27:00 UTC
I agree, the behavior should be consistent between the remote web interface and hitting play when 
paused should have the default behavior of unpausing.  The behavior was broken when switching 
directly from paused to play.

here's a patch:

fb:~/slim/server dean$ cvs diff Slim/Player/Source.pm 
Index: Slim/Player/Source.pm
===============================================================
====
RCS file: /home/cvs/cvsroot/slim/server/Slim/Player/Source.pm,v
retrieving revision 1.102
diff -r1.102 Source.pm
261a262,265
>       if ($newmode eq "play" && $prevmode eq "pause") {
>               $newmode = "resume";
>       }
> 

Comment 5 Blackketter Dean 2004-06-17 15:23:17 UTC
Fixed for the next nightly release.  PLAY from the web interface now does an unpause.
Comment 6 Chris Owens 2007-05-24 15:54:09 UTC
This Slimserver bug was fixed a very long time ago, and is now being marked as Closed.  If you're still experiencing this issue, please verify you are running a current version of Slimserver and re-open the bug.
Comment 7 Chris Owens 2008-12-18 11:54:44 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.