mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUACAMOLE-346: Playback must take into account that seeking is asynchronous.
This commit is contained in:
@@ -415,7 +415,7 @@ Guacamole.SessionRecording = function SessionRecording(tunnel) {
|
|||||||
var continuePlayback = function continuePlayback() {
|
var continuePlayback = function continuePlayback() {
|
||||||
|
|
||||||
// Advance to next frame
|
// Advance to next frame
|
||||||
seekToFrame(currentFrame + 1);
|
seekToFrame(currentFrame + 1, function playbackSeekComplete() {
|
||||||
|
|
||||||
// If frames remain after advancing, schedule next frame
|
// If frames remain after advancing, schedule next frame
|
||||||
if (currentFrame + 1 < frames.length) {
|
if (currentFrame + 1 < frames.length) {
|
||||||
@@ -442,6 +442,8 @@ Guacamole.SessionRecording = function SessionRecording(tunnel) {
|
|||||||
else
|
else
|
||||||
recording.pause();
|
recording.pause();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user