aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-03-10 23:27:48 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-03-10 23:27:48 +0100
commit800652c653684947e7394934bb06355ff07aac4b (patch)
treef434f3a66374d0ecb161b63815387b62ff931f40 /src/frontend
parente9514a2548e68702843ee70b215896d02d1d3cef (diff)
feat: add player duration control bar elements
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/views/stream.cljs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/tubo/views/stream.cljs b/src/frontend/tubo/views/stream.cljs
index 7ee00f8..147686f 100644
--- a/src/frontend/tubo/views/stream.cljs
+++ b/src/frontend/tubo/views/stream.cljs
@@ -40,8 +40,8 @@
(when-not resolution
(str " " averageBitrate "kbit/s")))})
available-streams))
- player-elements ["playToggle" "progressControl"
- "volumePanel" "playbackRateMenuButton"
+ player-elements ["playToggle" "CurrentTimeDisplay" "progressControl"
+ "DurationDisplay" "volumePanel" "playbackRateMenuButton"
"QualitySelector" "fullscreenToggle"]]
[layout/content-container
[:div.flex.justify-center.relative
@@ -50,7 +50,8 @@
{:sources sources
:poster thumbnail-url
:controls true
- :controlBar {:children player-elements}
+ :controlBar {:volumePanel {:inline false}
+ :children player-elements}
:preload "metadata"
:responsive true
:fill true