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

This change uses the duration and byte count of the Xing frame, if they're present, to estimate the bitrate of the stream. The seeking will still be inaccurate (because we're doing CBR seeking in a VBR stream), but it will be more accurate than basing the bitrate on the first MP3 frame we read. It will also mean the duration reported is accurate. This change also ensures that if the Xing frame contains the number of audio bytes but no ToC, the audio data length is still propagated into the `XingSeeker` (and therefore into the `ConstantBitrateSeeker` too). Issue: androidx/media#2194 PiperOrigin-RevId: 736100104
Test data module
Provides sample data for media unit and instrumentation tests.