Open stoically opened 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.
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