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

These tests show the current behaviour: 1. Without customization: not seekable 2. With 'enable CBR' flag: * File length known: seekable but duration very incorrect * File length unknown: not seekable (even though the Xing frame contains the number of bytes in the mp3 stream). Follow-up test changes will: 1. Add a test for the cbr-always case for this file (branched from the files submitted in this change). 2. Add a new similar test asset with no ToC but with trailing garbage bytes, to verify that the length from the Xing frame is used. Then follow-up implementation changes will update Mp3Extractor to use duration and byte length from a Xing frame when falling back to CBR seeking. Issue: androidx/media#2194 PiperOrigin-RevId: 734164879