Unable to send the total playtime while streaming an mp3 audio file using ASP.NET WEB API -


we have web service http://lullaby.shoresandbox.com/api/recordedsongs/stream/28 streams mp3 song. setting following headers.

response.content.headers.add("content-disposition", filename); response.content.headers.add("content-length", fileinfo.length.tostring()); 

a sample url web http://source.adminprotools.net/partybangaz/pbang019tk15.mp3 when opened in firefox, song played , see total duration of song. unable see total duration when open our own song. appreciated. followed link stream song.

i trying support streaming writing code. later realized same can achieved giving control iis. return url of static .mp3 file , leave rest iis server how stream it. working fine now.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -