I tried your media player on my Note 3 (Android version 4.3) and still getting the same behavior, playing the music for about one second, then waiting up to 7*8 seconds and resuming... This is the same behavior as the normal MediaPlayer implementation. How can I fix it, by modifying the buffer size?
In your DownloadPlayer.java file, you are setting
byte[] buffer = new byte[1024 * 16];
in DownloadTask. Isn't 16 KB's a bit low? Might the problem related to that?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, the download player is being phased out. The code (and buffer) buffer size you should be interested in src/net/sourceforge/servestream/media/FFmpegMediaPlayer.java:
int minBufferSize = AudioTrack.getMinBufferSize(sampleRateInHz, channelConfig, AudioFormat.ENCODING_PCM_16BIT) * 4;
Last edit: William Seemann 2014-02-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I tried your media player on my Note 3 (Android version 4.3) and still getting the same behavior, playing the music for about one second, then waiting up to 7*8 seconds and resuming... This is the same behavior as the normal MediaPlayer implementation. How can I fix it, by modifying the buffer size?
In your DownloadPlayer.java file, you are setting
byte[] buffer = new byte[1024 * 16];
in DownloadTask. Isn't 16 KB's a bit low? Might the problem related to that?
Thanks
Hello, the download player is being phased out. The code (and buffer) buffer size you should be interested in src/net/sourceforge/servestream/media/FFmpegMediaPlayer.java:
Last edit: William Seemann 2014-02-16