Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentTime not reset for multiple loads #57

Open
Java-Superman opened this issue Sep 17, 2014 · 0 comments
Open

currentTime not reset for multiple loads #57

Java-Superman opened this issue Sep 17, 2014 · 0 comments

Comments

@Java-Superman
Copy link

player.currentTime is not reset after a player.load(...) is called for the 2nd time.

player.playing is true and the player.currentTime is set to the previous currentTime. This causes the progress bar to jump briefly before being set correctly.

Our current workaround is to:

// bug fix for player... reset currentTime to zero when track is 0
$scope.$watch("player.currentTrack", function(newVal,oldVal) {
  if( newVal != oldVal && newVal === 0 && $scope.player.currentTime > 0) {
     $scope.player.currentTime = 0;
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant