diff --git a/js/app/controllers/playercontroller.js b/js/app/controllers/playercontroller.js index d88ff76ae..7b4a7c71c 100644 --- a/js/app/controllers/playercontroller.js +++ b/js/app/controllers/playercontroller.js @@ -238,7 +238,7 @@ angular.module('Music').controller('PlayerController', id: 'ownCloudSound', url: $scope.getPlayableFileURL($scope.currentTrack), whileplaying: function() { - $scope.setTime(this.position/1000, this.duration/1000); + $scope.setTime(this.position/1000, this.durationEstimate/1000); }, onstop: function() { $scope.setPlay(false); diff --git a/js/public/app.js b/js/public/app.js index 184aebbf7..72998be94 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -303,7 +303,7 @@ angular.module('Music').controller('PlayerController', id: 'ownCloudSound', url: $scope.getPlayableFileURL($scope.currentTrack), whileplaying: function() { - $scope.setTime(this.position/1000, this.duration/1000); + $scope.setTime(this.position/1000, this.durationEstimate/1000); }, onstop: function() { $scope.setPlay(false);