rasmuslos / ShelfPlayer

Native Audiobookshelf player for iOS & iPadOS
Other
148 stars 15 forks source link

Player bug #23

Closed noneme closed 5 months ago

noneme commented 5 months ago

I noticed this bug... most likely this is an error in the framework of the player itself, but maybe not... the point is this: when you launch the application, start playing a previously started book (online), then the progress indicator goes all the way to the edge of the screen, after loading - everything becomes okay.

this is absolutely not critical, but interesting😃

image

rasmuslos commented 5 months ago

This is more or less just a visual bug. The duration is known from the header of the audio file, so it can be loaded without a problem. But the current time is unknown until the audio buffer is big enough. So you are dividing be infinity and infinity back. This causes the progress bar to freak out during the initial buffering. This is not apparent during offline play, because the buffering is way faster. Should be fixed in https://github.com/rasmuslos/ShelfPlayer/commit/81a1164cd3cce133b917442dc6e659c8daf04b44