unpaprd icon indicating copy to clipboard operation
unpaprd copied to clipboard

Error between a chapter finish and the beggining of a new one

Open costaalex opened this issue 4 years ago • 1 comments
trafficstars

When the chapter finishes and another one begins naturally, the app crushes because there is a division by 0 in the slider. Solved by adding 1 millisecond to the denominator so it doesn't start with 0:

components/player.dart file, row 402: value: position.inMilliseconds / duration.inMilliseconds, changed to value: position.inMilliseconds / (duration.inMilliseconds + 1),

costaalex avatar Mar 30 '21 20:03 costaalex

Actually the solution above doesn't solve the problem completely. Sometimes it crashes anyway when a new chapter begins

costaalex avatar Apr 02 '21 23:04 costaalex