I've spent all day on this and got nowhere so some help would be really appreciated.
I'm using the Publisher API to create a stream. I'm using addAudioData() to feed in MP3 audio data read directly from a normal 128kbps file.
When I play the stream, it plays for a second perfectly, and then starts jumping all over the place.
For "timecode", I'm passing in an integer reflecting the number of milliseconds that have passed, calculated using:
I'm not sure if it's necessary to Thread.sleep() for this amount between calls to addAudioData, but whether I sleep or not it's still jumping.(bytes_read / 16000) * 1000 // 16000 bytes per second in a 128kbps file
What could be going wrong?