Hello!
Suddenly I got some problem with playing mp3 stuff in flowplayer.
I embed flowplayer in jsp page using tag
:
<a href = ${pageContext.request.contextPath}/servlets/rp_3gp_player?VARS=${msg.fileId}></a>
rp_3gp_player is servlet (extends HttpServlet), and fileId is necessary data to extract videofile from storage. Normal, rp_3gp_player simply return object of ByteArrayOutputStream to player, and, in normal, it playing this stuff. Servlet I use for converting 3gp file from storage to flv file (using ffmpeg). And for this case (playing flv), all works well.
But my problem start, when I want play mp3 stuff. In storage, I have an wav files, and, as preceding case, I simply write similarly servlet for converting wav to mp3 (using lame), and return ByteArrayOutputStream to player. But, this case not work. If I targeting href property to standalone mp3 file, it works well. But, if I using servlet, nothing works.
So I try another test for my servlets: I simply enter full it url's with all parameters to Address textbox of my FireFox, and press enter. In both case (flv servlet anf mp3 servlet), in response I get good files (.flv and .mp3 respectively), - in this point I think my servlets works well.
If you have any ideas about my problem (playing mp3 stuff from java servlet), please, write about it!