mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-346: Provide explicit "cancel" button for in-progress seek.
This commit is contained in:
@@ -34,7 +34,10 @@
|
||||
<div id="display">
|
||||
<div class="notification-container">
|
||||
<div class="seek-notification">
|
||||
<p>Seek in progress... Click "play" to cancel.</p>
|
||||
<p>
|
||||
Seek in progress...
|
||||
<button id="cancel-seek">Cancel</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -41,6 +41,13 @@
|
||||
*/
|
||||
var playPause = document.getElementById('play-pause');
|
||||
|
||||
/**
|
||||
* Button for cancelling in-progress seek operations.
|
||||
*
|
||||
* @type Element
|
||||
*/
|
||||
var cancelSeek = document.getElementById('cancel-seek');
|
||||
|
||||
/**
|
||||
* Text status display indicating the current playback position within the
|
||||
* recording.
|
||||
@@ -164,6 +171,12 @@
|
||||
recording.pause();
|
||||
};
|
||||
|
||||
// Cancel seek operation when cancel button is clicked
|
||||
cancelSeek.onclick = function cancelSeekOperation(e) {
|
||||
recording.pause();
|
||||
e.stopPropagation();
|
||||
};
|
||||
|
||||
// Fit display within containing div
|
||||
recordingDisplay.onresize = function displayResized(width, height) {
|
||||
|
||||
|
Reference in New Issue
Block a user