remove buffered todo, after research it should already be working as intended

This commit is contained in:
mrjvs 2023-12-02 00:13:48 +01:00
parent 7841fadcb6
commit 29d0b05845

View File

@ -1,5 +1,4 @@
export function handleBuffered(time: number, buffered: TimeRanges): number {
// TODO normalize the buffer sections into one section. they can be stitched together
for (let i = 0; i < buffered.length; i += 1) {
if (buffered.start(buffered.length - 1 - i) < time) {
return buffered.end(buffered.length - 1 - i);