From 68b07d595d5cf9e73291cda89b78b21279d4be4f Mon Sep 17 00:00:00 2001 From: Alban Costaz Date: Thu, 2 Jan 2025 10:19:42 +0100 Subject: [PATCH] [MS] FileControlsPlayback component --- .../viewers/controls/FileControlsPlayback.vue | 34 +++++++++++++++++++ client/src/components/viewers/index.ts | 11 +++++- client/src/views/viewers/AudioViewer.vue | 22 +++--------- client/src/views/viewers/VideoViewer.vue | 22 +++--------- 4 files changed, 54 insertions(+), 35 deletions(-) create mode 100644 client/src/components/viewers/controls/FileControlsPlayback.vue diff --git a/client/src/components/viewers/controls/FileControlsPlayback.vue b/client/src/components/viewers/controls/FileControlsPlayback.vue new file mode 100644 index 00000000000..a9b184ac69a --- /dev/null +++ b/client/src/components/viewers/controls/FileControlsPlayback.vue @@ -0,0 +1,34 @@ + + + + + + + diff --git a/client/src/components/viewers/index.ts b/client/src/components/viewers/index.ts index a38b3657d65..f743ffc0881 100644 --- a/client/src/components/viewers/index.ts +++ b/client/src/components/viewers/index.ts @@ -5,6 +5,15 @@ import FileControlsButton from '@/components/viewers/controls/FileControlsButton import FileControlsGroup from '@/components/viewers/controls/FileControlsGroup.vue'; import FileControlsInput from '@/components/viewers/controls/FileControlsInput.vue'; import FileControlsPagination from '@/components/viewers/controls/FileControlsPagination.vue'; +import FileControlsPlayback from '@/components/viewers/controls/FileControlsPlayback.vue'; import FileControlsZoom from '@/components/viewers/controls/FileControlsZoom.vue'; -export { FileControls, FileControlsButton, FileControlsGroup, FileControlsInput, FileControlsPagination, FileControlsZoom }; +export { + FileControls, + FileControlsButton, + FileControlsGroup, + FileControlsInput, + FileControlsPagination, + FileControlsPlayback, + FileControlsZoom, +}; diff --git a/client/src/views/viewers/AudioViewer.vue b/client/src/views/viewers/AudioViewer.vue index 5f5a7906042..d272767526f 100644 --- a/client/src/views/viewers/AudioViewer.vue +++ b/client/src/views/viewers/AudioViewer.vue @@ -19,9 +19,9 @@