While audio file is playing in jPlayer, when pause and play the call or drag to another offset , the call quality is getting very low like echo, some noise in the call.
For playing the call in jPlayer, I am pointing to some url and I am writing audio data in response output stream .
Below is my code ,
FileInputStream fileInputStream= new FileInputStream( new File(filePath));
IOUtils.copy(fileInputStream, response.getOutputStream());
While audio file is playing in jPlayer, when pause and play the call or drag to another offset , the call quality is getting very low like echo, some noise in the call.
For playing the call in jPlayer, I am pointing to some url and I am writing audio data in response output stream .
Below is my code , FileInputStream fileInputStream= new FileInputStream( new File(filePath)); IOUtils.copy(fileInputStream, response.getOutputStream());