Incorrect .position/.time in audio playback.
MobileVLCKit 3.4.1b9
If I simply pause then resume audio playback, there is a ~1500 ms silence before audio is heard again. It seems like the audio actually silently plays for ~1500 ms then the sound comes at a correct time. Like 1.. 2.. [pause-play] silence 4.. 5.. (seems to be the same as #549).
If I pause audio and read the current time or position, I get invalid values, much earlier in playback. Here is an example:
I paused the 5.23 seconds recording about half-way in, at about 2500 ms, but I get these values for .position
and .time.intValue
respectively: paused at 0.046502978, 250
. These values are consistent with each other and with the duration of the audio but inconsistent with the actual playback position, they should be about 10 times greater. The .time
is always in 250 ms increments.
I can get around this issue by manually saving/assigning a correct playback position but it would be nice to fix the issue at the source.
Edited: I previously assumed it was due to WebM format, but it equally affects the AAC m4a too.