You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by vn...@apache.org on 2017/07/19 18:37:15 UTC
[10/14] incubator-guacamole-client git commit: GUACAMOLE-346: Update
seeking state when paused or canceled.
GUACAMOLE-346: Update seeking state when paused or canceled.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/be9124d5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/be9124d5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/be9124d5
Branch: refs/heads/master
Commit: be9124d599ef28b75736b34eed6221f0844a48b6
Parents: 519daee
Author: Michael Jumper <mj...@apache.org>
Authored: Sat Jul 15 17:25:34 2017 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Sat Jul 15 17:25:34 2017 -0700
----------------------------------------------------------------------
doc/guacamole-playback-example/src/main/webapp/playback.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/be9124d5/doc/guacamole-playback-example/src/main/webapp/playback.js
----------------------------------------------------------------------
diff --git a/doc/guacamole-playback-example/src/main/webapp/playback.js b/doc/guacamole-playback-example/src/main/webapp/playback.js
index d699296..0554a50 100644
--- a/doc/guacamole-playback-example/src/main/webapp/playback.js
+++ b/doc/guacamole-playback-example/src/main/webapp/playback.js
@@ -161,6 +161,7 @@
// If paused, the play/pause button should read "Play"
recording.onpause = function() {
playPause.textContent = 'Play';
+ display.classList.remove('seeking');
};
// Toggle play/pause when display or button are clicked
@@ -173,6 +174,7 @@
// Cancel seek operation when cancel button is clicked
cancelSeek.onclick = function cancelSeekOperation(e) {
+ display.classList.remove('seeking');
recording.pause();
e.stopPropagation();
};
@@ -204,9 +206,6 @@
// Seek within recording if slider is moved
positionSlider.onchange = function sliderPositionChanged() {
- // Seek is in progress
- display.classList.add('seeking');
-
// Request seek
recording.seek(positionSlider.value, function seekComplete() {
@@ -214,6 +213,10 @@
display.classList.remove('seeking');
});
+
+ // Seek is in progress
+ display.classList.add('seeking');
+
};
})();