GUACAMOLE-1803: Update session recording playback at least once per second and allow arbitrary seeking.

This commit is contained in:
James Muehlner committed 2023-06-15 16:32:46 +00:00
1 parent 466476412a
commit b8de8ebb90
2 files changed
+156 -40

No files matched your search

@@ -96,6 +96,14 @@ angular.module('player').directive('guacPlayer', ['$injector', function guacPlay
config.controller = ['$scope', '$element', '$injector',
function guacPlayerController($scope) {
/**
* The minimum number of milliseconds that should occur between updates
* to the progress indicator.
*
* @type {number}
*/
const PROGRESS_REFRESH_INTERVAL = 1000;
/**
* Guacamole.SessionRecording instance to be used to playback the
* session recording given via $scope.src. If the recording has not
@@ -303,7 +311,8 @@ angular.module('player').directive('guacPlayer', ['$injector', function guacPlay
// Otherwise, begin loading the provided recording
else {
$scope.recording = new Guacamole.SessionRecording(src);
$scope.recording = new Guacamole.SessionRecording(
src, PROGRESS_REFRESH_INTERVAL);
// Begin downloading the recording
$scope.recording.connect();