1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

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);