mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-346: Display "seek in progress" notification when seeking in playback example.
This commit is contained in:
@@ -148,6 +148,7 @@
|
||||
// If playing, the play/pause button should read "Pause"
|
||||
recording.onplay = function() {
|
||||
playPause.textContent = 'Pause';
|
||||
display.classList.remove('seeking');
|
||||
};
|
||||
|
||||
// If paused, the play/pause button should read "Play"
|
||||
@@ -189,7 +190,17 @@
|
||||
|
||||
// Seek within recording if slider is moved
|
||||
positionSlider.onchange = function sliderPositionChanged() {
|
||||
recording.seek(positionSlider.value);
|
||||
|
||||
// Seek is in progress
|
||||
display.classList.add('seeking');
|
||||
|
||||
// Request seek
|
||||
recording.seek(positionSlider.value, function seekComplete() {
|
||||
|
||||
// Seek has completed
|
||||
display.classList.remove('seeking');
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
})();
|
||||
|
Reference in New Issue
Block a user