1
0
Fork 0

Fixed seeking bug

master
Ambrose Chua 2015-10-15 22:56:48 +08:00
parent 3e1e19dbdf
commit 1767676b44
1 changed files with 1 additions and 1 deletions

View File

@ -190,8 +190,8 @@ public class InterfaceController {
if (c) {
playbackSlider.valueProperty().unbind();
} else {
playbackSlider.valueProperty().bind(player.currentPercent());
player.seek(new Duration(playbackSlider.getValue() * player.totalTimeProperty().get().toMillis()));
playbackSlider.valueProperty().bind(player.currentPercent());
}
});