language-transfer / lt-app

React Native application for Language Transfer
https://www.languagetransfer.org/
Other
291 stars 26 forks source link

Listen page progress bar can show text past the bounds of the audio #1

Open SyntaxBlitz opened 4 years ago

SyntaxBlitz commented 4 years ago

I noticed while testing the app that the progress bar briefly showed "5:15 / 5:14" on the Listen page.

This could be caused by a few things, but it's probably inconsistent rounding or metadata that's inconsistent with the file (or with the player's perception of the file length).

Ideally, we'd never render an "impossible" time, but we should also account for the possibility that the metadata may truly be wrong. For example, if the downloaded metadata says the track length is 2:00 and the track is truly 10:00, we don't want to show "2:00 / 2:00" for 8 minutes.

Options: