mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
8ea237c214
Previously, we would read each individual VTTC and VTTE box in the MDAT and associate them with durations in the TRUN. This worked for a lot of content, but if sampleSize is defined in the TRUN, a duration might refer to multiple VTTC boxes. This changes the VTT in mp4 reader to parse the MDAT based on the TRUN, to account for such situations. For the moment, this only accounts for a single MDAT, and assumes that the MDAT contains nothing but vttc or vtte boxes, listed in order. Issue #1266 Change-Id: I56e310d085abdda16e968761ed3b4fd0cc5e24d0