-
1. Re: .Mp3 file not playing in browser
kuldeep11 Mar 27, 2014 7:15 AM (in response to appose)You have to configure mime type in web.xml as below :
<mime-mapping>
<extension>mp3</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
Thanks!!
-
2. Re: .Mp3 file not playing in browser
appose Mar 27, 2014 7:44 AM (in response to appose)Hi Kuldeep Thanks for the replay.
I have added the mime-mapping in web.xml of jboss but it's not working. Any other way to solve it. I can play the file when the file is out the server.
-
3. Re: .Mp3 file not playing in browser
josdel Mar 27, 2014 7:39 AM (in response to appose)Hi Nince,
You just try using a servlet and set the above mime type
-
4. Re: .Mp3 file not playing in browser
kuldeep11 Mar 27, 2014 9:53 AM (in response to josdel)Please change mime-type from audio/x-mpeg to audio/mpeg.
I have tested this and its working for me .
-
5. Re: .Mp3 file not playing in browser
appose Mar 28, 2014 1:10 AM (in response to kuldeep11)Hi Kuldeep
I have added in web.xml (jboss-5.0.0.GA\server\default\deploy\jbossws.sar\jbossws-management.war\WEB-INF\web.xml). but again the download option will come when i access the URL of mp3 file in browser.
-
6. Re: .Mp3 file not playing in browser
kuldeep11 Mar 28, 2014 4:14 AM (in response to appose)You have to make changes in (jboss-5.0.0.GA\server\default\deployers\jbossweb.deployer\web.xml).
-
7. Re: .Mp3 file not playing in browser
appose Mar 28, 2014 4:36 AM (in response to kuldeep11)Hi Kuldeep
Still the download link is coming not playing in browser.
-
8. Re: .Mp3 file not playing in browser
kuldeep11 Mar 28, 2014 8:28 AM (in response to appose)Hi Nince,
Don't know how you are configuring.
But in my case, I have made changes and tried to access sample .mp3 by placing it in ROOT.war.
After this by hitting http://127.0.0.1/test.mp3, it getting played instead of asking for download.
Have you tried by removing all cache and then restarting again? Also, if this doesn't work, then put these changes to your App's web.xml.
Otherwise it would be great if you can share sample app having mp3 file only. So that I can give it try on my setup.
Thanks!
-
9. Re: .Mp3 file not playing in browser
appose Mar 29, 2014 3:27 AM (in response to kuldeep11)Thanks Kuldeep, It's working fine for me. I just added the mime type in web.xml and add plugin of vlc player in browser.
-
10. Re: .Mp3 file not playing in browser
kuldeep11 Mar 29, 2014 3:46 AM (in response to appose)Good to know that finally its working !!
-
11. Re: .Mp3 file not playing in browser
kuldeep11 Mar 31, 2014 3:53 AM (in response to appose)1 of 1 people found this helpfulHi Nince,
Can you please mark this as answered, if your issue has been resolved?
Thanks!