This issue only occurs if you are using this library to play a wav audio in a webview of jdk1.8 javafx via js audio API. like:
var audio = new Audio();
audio.src = "http://127.0.0.1:8080/ld45happy.mp3";
audio.play();
//and in the java server side :
return newFixedLengthResponse(Status.OK,"audio/x-wav", new ByteArrayInputStream(WavData), WavData.length);
In the webview of jdk1.8 javafx , no audio will be played :
This issue only occurs if you are using this library to play a wav audio in a webview of jdk1.8 javafx via js audio API. like:
In the webview of jdk1.8 javafx , no audio will be played :
To solve this, I just need to add a line in Response.java,line#313:
The if-check had been there before a45eb0e96d8081f67baca79660ba44aa01978b88 . And after the introduce of gzip support , it was gone.
Although this little issue does not seem to occur in other browsers , I think it's better to and the if-check back.