Fix issue with files that have some tracks that don't extend the whole duration of the video. ISOFile.prototype.seek would return the offset based on already ended tracks and thus cause unnecessary downloads/buffering. Tried to explain behaviour below:
Before:
Video track 1: ====================================
Audio track 1: ====================================
Audio track 2: ===========
^ ^
returned offset seek
After:
Video track 1: ====================================
Audio track 1: ====================================
Audio track 2: ===========
^
seek & returned offset
Fix issue with files that have some tracks that don't extend the whole duration of the video.
ISOFile.prototype.seek
would return the offset based on already ended tracks and thus cause unnecessary downloads/buffering. Tried to explain behaviour below:Before:
After: