web applications - Programmatically playing certain parts of mp3 -
i'd have 1 mp3 file , play parts of it, css sprites. meaning, defining offsets , duration original file. example, have 1 minute mp3 file , want play seconds 30-35 it.
looking way in .net, preferably, not must.
thanks!
the first decision whether "client side" (i.e. in html/javascript) or server side (i.e. in whatever language site built in, e.g. php, c#, ruby, etc.).
your edit says want in .net - if want server-side, you'll have find audio library (see this question), , "seek" right point in mp3 stream, return browser appropriate mime type.
however, should careful such implementation - may find supporting large numbers of requests choke, if can't load mp3 files memory , have read them disk every request.
the alternative client side - using library jplayer, supports "seeking" location in mp3 out of box.
this creates simpler server implementation, , should support browsers - though @ mercy of library creators guarantee that.
Comments
Post a Comment