mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 06:11:53 +01:00
remove buffered todo, after research it should already be working as intended
This commit is contained in:
parent
7841fadcb6
commit
29d0b05845
@ -1,5 +1,4 @@
|
|||||||
export function handleBuffered(time: number, buffered: TimeRanges): number {
|
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) {
|
for (let i = 0; i < buffered.length; i += 1) {
|
||||||
if (buffered.start(buffered.length - 1 - i) < time) {
|
if (buffered.start(buffered.length - 1 - i) < time) {
|
||||||
return buffered.end(buffered.length - 1 - i);
|
return buffered.end(buffered.length - 1 - i);
|
||||||
|
Loading…
Reference in New Issue
Block a user