QutEcoacoustics / baw-client

The AngularJS client for the bioacoustic workbench
Other
7 stars 1 forks source link

bug(listen): Playback sometimes fails on the listen page #330

Open atruskie opened 6 years ago

atruskie commented 6 years ago

This bug was noticed while using the autoplay feature on the listen page.

Sometimes playback will not continue. The play button is disabled, and the readyState for the audio element is set to 1 (HAVE_METADATA). The duration attribute for the audio element responds with the correct duration (e.g. 30.669). The associated media request responds with a 206 Partial Content indicating that the media generation was successful. Subsequent requests to the media URL show that the response is generated properly. Refreshing the problem page does fix the problem. Of the number of times this bug has been observed, it has mostly occurred near the end of a file.

I suspect this is a timing or caching issue.