From a1260cbba203a18e70150734c7a543f34ae67ef3 Mon Sep 17 00:00:00 2001 From: mcguffin Date: Tue, 12 Jun 2012 11:35:56 +0200 Subject: [PATCH] fixed seeking bug #38 - made HTML5- and flash fallback behave consistently (both now resume playing on seek) - updated playing-state indication --- js/sc-player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/sc-player.js b/js/sc-player.js index 837de4d..7ac1db0 100644 --- a/js/sc-player.js +++ b/js/sc-player.js @@ -226,6 +226,8 @@ }, seek: function(relative){ player && player.api_seekTo((player.api_getTrackDuration() * relative)); + // make flash-thing consistentbehave like html5-thing + player && player.api_play(); }, getDuration: function() { return player && player.api_getTrackDuration && player.api_getTrackDuration() * 1000; @@ -396,6 +398,7 @@ onSeek = function(player, relative) { audioEngine.seek(relative); $(player).trigger('onPlayerSeek'); + updatePlayStatus(player, true); }, onSkip = function(player) { var $player = $(player);