mirror of
https://github.com/androidx/media.git
synced 2025-05-11 17:49:52 +08:00

This allows the same adjusters to be used by multiple HlsChunkSource instances. This is necessary because WebVTT chunks will be loaded by a second chunk source to the one loading audio/video. In both cases the same timestamp adjustments will need to be applied. Each source may transition from one discontinuity sequence to the next at a slightly different time, so it's necessary to maintain a separate adjuster for each sequence. An adjuster can only be initialized correctly using audio/video and not WebVTT, because the start time in a WebVTT file in HLS doesn't necessarily correspond to the chunk start time, which means the timestamp offset calculated by the adjuster could end up being incorrect. Hence sources providing WebVTT chunks will set isMasterSource to false. Lovely, right :(? Issue: #151 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=111693126