stoically / humanetube

Redirects YouTube Videos to a local website to provide you with a humane viewing experience
https://addons.mozilla.org/firefox/addon/humanetube
MIT License
3 stars 0 forks source link

Proper seeking #7

Open stoically opened 3 years ago

stoically commented 3 years ago

Currently when seeking it still needs to buffer from the beginning. To buffer from the correct position would require to get the byte range for the seeked time

See https://github.com/fent/node-ytdl-core/pull/159

TheBolliwood commented 3 years ago

I think it's possible to seek WebM files by parsing the EBML inside it e.g. with the library https://github.com/node-ebml/node-ebml as implemented in https://github.com/TinyMan/node-jamy.

During digging in I found that FreeTube uses video.js to play YouTube videos. It seems like they also have proper buffering after seeking.