mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Currently, we are discarding all TS PES payload readers on seek. This is to fix a bug that makes PES stream readers read packets inconsistently after seeking (first time, the readers ignore all packets before PMT, second seek time after PMT is read, the readers will read all packets before PMT). This works fine if we don't support seeking to arbitrary position within the TS stream. However, this may lead to a problem if we want to support seeking, because some TS streams only have track format at the begining of the stream, and reseting the payload readers after seeking can lead to track format not available anymore. This change reverts the original fix (do not discard TS PES payload readers on seek anymore). Instead, in non-HLS mode, after we have processed all PMTs packets in the strea, we will re-seek to the beginning and perform readin again to make sure the result will be consistent across multiple seeks. This is a prepare step to support seeking in TS streams. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202466233
ExoPlayer library
The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.