diff --git a/packages/app/src/components/PlayerControls.tsx b/packages/app/src/components/PlayerControls.tsx index adc0c22..bf4c292 100644 --- a/packages/app/src/components/PlayerControls.tsx +++ b/packages/app/src/components/PlayerControls.tsx @@ -10,12 +10,15 @@ import type { ReactNode, RefObject } from "react"; export function PlayerControls() { return (
-
+
+
+ +
-
@@ -78,7 +81,7 @@ function Seekbar() { } return ( -
+
{hms(seekbar.value)} -
-
+
+
+
@@ -137,7 +146,7 @@ function Tooltip({
player.seekableStart); return ( -
+
{cuePoints.map((cuePoint) => { return (
player.qualities); + const autoQuality = usePlayerSelector((player) => player.autoQuality); + const setQuality = usePlayerSelector((player) => player.setQuality); + + return ( + item.active} + getKey={(item) => item.height} + getLabel={(item) => item.height?.toString() ?? "Auto"} + onChange={(item) => setQuality(item.height)} + /> + ); +} + function hms(seconds: number) { return ( new Date(seconds * 1000).toUTCString().match(/(\d\d:\d\d:\d\d)/)?.[0] ??