From be7e2576f101d0323c94bd5b62fd1a9e50e8008c Mon Sep 17 00:00:00 2001 From: Mark Cooper Date: Fri, 20 Aug 2021 18:29:10 -0500 Subject: [PATCH] Adding audio playback speed control, updating volume control UI, fix stream play for small streams --- client/assets/app.css | 12 ++ client/assets/transitions.css | 14 ++ client/components/AudioPlayer.vue | 33 ++-- client/components/app/StreamContainer.vue | 8 + .../controls/PlaybackSpeedControl.vue | 62 ++++++++ client/components/controls/VolumeControl.vue | 80 +++++++--- client/components/modals/edit-tabs/Match.vue | 4 +- client/package.json | 2 +- client/pages/config/index.vue | 15 +- package.json | 2 +- server/HlsController.js | 27 +--- server/Server.js | 2 - server/Stream.js | 142 +----------------- 13 files changed, 192 insertions(+), 211 deletions(-) create mode 100644 client/components/controls/PlaybackSpeedControl.vue diff --git a/client/assets/app.css b/client/assets/app.css index e6ab6a4d..86004e26 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -28,6 +28,10 @@ background: #704922; } +.no-scroll::-webkit-scrollbar { + display: none; + opacity: 0; +} .tracksTable { border-collapse: collapse; @@ -49,4 +53,12 @@ .tracksTable th { padding: 4px; font-size: 0.75rem; +} + +.arrow-down { + width: 0; + height: 0; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-top: 6px solid white; } \ No newline at end of file diff --git a/client/assets/transitions.css b/client/assets/transitions.css index e8075c02..55e1f73e 100644 --- a/client/assets/transitions.css +++ b/client/assets/transitions.css @@ -44,4 +44,18 @@ .menu-enter, .menu-leave-active { opacity: 0; +} + +.menux-enter, .menux-leave-active { + transform: translateX(15px); +} +.menux-enter-active { + transition: all 0.2s; +} +.menux-leave-active { + transition: all 0.1s; +} +.menux-enter, +.menux-leave-active { + opacity: 0; } \ No newline at end of file diff --git a/client/components/AudioPlayer.vue b/client/components/AudioPlayer.vue index 6a2b3e10..94ad32d6 100644 --- a/client/components/AudioPlayer.vue +++ b/client/components/AudioPlayer.vue @@ -27,9 +27,7 @@
forward_10
-
- 1x -
+