How to playback stream in a browser

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some audio data in a proprietary format (that is, to prevent unauthorised access to audio data) residing on server. I have to create an ASP.NET app to read this data and give it to browser without any temporary file (.wav for example). Moreover, the client browser should be able to jump forward and backward, pause and resume playback, so I think it is necessary to implement a sort of streaming between browser and server. Any idea how to accomplish this task? I don't know how to implement streaming and I don't know how to playback in internet explorer (how to receive audio data from server and how to send it to sound card). Please help. If there are articles related to something like this, I'll be happy to read them. Thanks.
 
look at media server from MS. It should allow this easily. Most media types
can be streamed. Please note though, streaming does not secure it 100%. You
can still capture the stream with a little work.
I know in the past I did this with WinAMP even. It has a server component
that you play on another PC/Server and point it to the webserver that's
running the Server component. They clients point to a specific port on the
Web Server. Something like this is also done in Media Server I believe.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


Paul said:
I have some audio data in a proprietary format (that is, to prevent
unauthorised access to audio data) residing on server. I have to create an
ASP.NET app to read this data and give it to browser without any temporary
file (.wav for example). Moreover, the client browser should be able to jump
forward and backward, pause and resume playback, so I think it is necessary
to implement a sort of streaming between browser and server. Any idea how to
accomplish this task? I don't know how to implement streaming and I don't
know how to playback in internet explorer (how to receive audio data from
server and how to send it to sound card). Please help. If there are articles
related to something like this, I'll be happy to read them. Thanks.
 
My website http://ratemymusic.co.uk uses flash to achieve this

I pass the name of the mp3 into flash like this (set with asp.net)

<PARAM NAME="Movie"
VALUE="/assets/flash/mp3.swf?tune=648c01bd-bb13-40d4-914c-d9f5cff8d095.mp3">
<PARAM NAME="Src"
VALUE="/assets/flash/mp3.swf?tune=648c01bd-bb13-40d4-914c-d9f5cff8d095.mp3">

Flash then knows to stream this from
/aHiddenDirectory/648c01bd-bb13-40d4-914c-d9f5cff8d095.mp3

Moving back and forth through the file is also possible with flash, tho' my
implementation doesn't do this.

Obviously you'd need to convert your data to mp3, don't know if that's an
option!


Paul said:
I have some audio data in a proprietary format (that is, to prevent
unauthorised access to audio data) residing on server. I have to create an
ASP.NET app to read this data and give it to browser without any temporary
file (.wav for example). Moreover, the client browser should be able to jump
forward and backward, pause and resume playback, so I think it is necessary
to implement a sort of streaming between browser and server. Any idea how to
accomplish this task? I don't know how to implement streaming and I don't
know how to playback in internet explorer (how to receive audio data from
server and how to send it to sound card). Please help. If there are articles
related to something like this, I'll be happy to read them. Thanks.
 
Obviously you'd need to convert your data to mp3, don't know if that's a
I cannot convert to a mp3 file, because data can be too large and could take a lot of time. I think I can convert on request, during streaming, only the data that is ready to be send to browser. Otherwise, the user will have to wait a lot until streaming begins.
 
Back
Top