audio playback. How can I hide media player.

  • Thread starter Thread starter vladislavf
  • Start date Start date
V

vladislavf

Hi All,

On my web server during an user request I generate dynamicaly a small
wav file and then send it to the browser by calling to:
Response.TransmitFile ( eventFileName );
The problem is that browser on a client machine opens automatically the
media player.
Is there a way to eliminate this behaviour ?
And another question:
Is there better way to implement this flow?

Thank you very much!!

Vladislav
 
Set the repsonse content-type to octetstream. That should take care of it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top