diff --git a/thrimbletrimmer/src/common/video.tsx b/thrimbletrimmer/src/common/video.tsx index 59d05b5..a0c0bb1 100644 --- a/thrimbletrimmer/src/common/video.tsx +++ b/thrimbletrimmer/src/common/video.tsx @@ -3,8 +3,6 @@ import { Component, createEffect, createSignal, - For, - onCleanup, onMount, Setter, Show, @@ -210,13 +208,16 @@ export const VideoPlayer: Component = (props) => { let [playerTime, setPlayerTime] = createSignal(0); let [duration, setDuration] = createSignal(0); + let [playbackSpeed, setPlaybackSpeed] = createSignal(1); + let [qualityName, setQualityName] = createSignal(""); onMount(() => { const player = props.mediaPlayer(); - player.subscribe(({ currentTime, duration }) => { + player.subscribe(({ currentTime, duration, playbackRate }) => { setPlayerTime(currentTime); props.setPlayerTime(currentTime); setDuration(duration); + setPlaybackSpeed(playbackRate); }); player.streamType = "on-demand"; }); @@ -296,6 +297,62 @@ export const VideoPlayer: Component = (props) => {
+ + + + + + + + + Settings + + + +
+
+
Speed
+
{playbackSpeed()}x
+
+
+
+ +
+
+
+ + + +
+
+
+
+
+
+
Quality
+
+
+
+
+ +
+
+
+
+ + + +
+
+
+
+
+
+