Background: I'm developing a custom video players in JS to stream MP4 Files using multiple-TCP connections (HTTP/1.1), the reason I'm doing this is because on networks with high latency a single TCP connection provide less bandwidth but by using multiple-TCP connections we can increase the bandwidth (just like how download managers speed up downloading under certain network conditions, like high latency, traffic congestion etc). The only difference between this player and a download managers is that, the player downloads the video in multiple small chunks (1MB/2MB) sequentially, appends the downloaded chunks and play the video, when new chunks are downloaded the are appended to the video.
Problem: I've successfully created the player, however I'm having trouble implementing seek function, I've no way to tell which range-bytes to request when the user seeks the video to a timestamp which is not yet downloaded, I don't want to use a 3rd party library, any help would be appreciated.
Thanks.