java - Serving up an audio (mp3) file from a servlet -


so i'm serving mp3 file using httpservletresponse writing servlet output stream.

when go location in browser, mp3 correctly loads , starts playing, unfortunately, isn't able seek anywhere(i can't scroll through song @ all)

how fix this, or make browser downloads full song before starts playing.

thanks in advance.

you need wrap in audio controls tag, assuming html5. see http://www.w3schools.com/html/html5_audio.asp example. replace hardcoded mp3 call servlet.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -