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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -