{song.artist}
diff --git a/viewer/src/components/WebVttPlayer/WebVttPlayer.tsx b/viewer/src/components/WebVttPlayer/WebVttPlayer.tsx index 8724f33..4fca560 100644 --- a/viewer/src/components/WebVttPlayer/WebVttPlayer.tsx +++ b/viewer/src/components/WebVttPlayer/WebVttPlayer.tsx @@ -29,40 +29,57 @@ interface NativePlayerRef { play: () => void; } +//Write a fetcher function to wrap the native fetch function and return the result of a call to url in json format +// const fetcher = (url: string) => fetch(url).then((res) => res.json()); + export default function WebVttPlayer(props: WebVttPlayerProps) { const [trackLoaded, setTrackLoaded] = useState(false); const [metatrackLoaded, setMetatrackLoaded] = useState(false); const [query, setQuery] = useState(''); // TODO: determine if these should be set - const [currentTime, setCurrentTime] = useState(0); - const [seeking, setSeeking] = useState(false); - const [played, setPlayed] = useState(new Float64Array(0)); const [playing, setPlaying] = useState(false); - const trackRef = useRef(null); - const metatrackRef = useRef(null); + const trackRef = useRef