started a more proper implementation of the player

This commit is contained in:
Chris Kruining 2025-05-26 16:25:39 +02:00
parent d902f19d35
commit fbc040c317
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
6 changed files with 231 additions and 50 deletions

View file

@ -0,0 +1,26 @@
import { Component } from "solid-js";
interface SeekBarProps {
video: HTMLVideoElement | undefined;
}
export const SeekBar: Component<SeekBarProps> = () => {
return (
<>
<input
list="chapters"
type="range"
max={duration().toFixed(0)}
value={currentTime().toFixed(0)}
oninput={(e) => setTime(e.target.valueAsNumber)}
step="1"
/>
<datalist id="chapters">
<option value="100">Chapter 1</option>
<option value="200">Chapter 2</option>
<option value="300">Chapter 3</option>
</datalist>
</>
);
};