Hi all,
Im trying to stream an RealPlayer file to the client. In classis asp,
the code was as such:
<%
Response.Buffer=True
Response.ContentType="audio/x-pn-realaudio"
%>
rtsp://myserver/filename.ra?start=""&end=""&title="Test"
--stop--
pnm://myserver/filename.ra?start=""&end=""&title="Test"
This worked (and still does) in the way that RealPlayer (My audio
program) would pop open and play the files.
Now when I try this via an aspx file, I get prompted for a file
download, and it lists the name of the page that is sending the file
(mmPlay.aspx) and says its a file of type "web form". Im assuming its
looking up the current page's file extension and hence why aspx is
being listed as a web form. If I click open, it just opens it in
vs.net (the registered editor for an .aspx file). In the classic asp
example, this never happened. The file opened right up and played
without prompting.
So using the exact same code in each version of asp works in one and
not another:
Hardcoded asp.net example:
<%@ Page contentType="audio/x-pn-realaudio" Buffer="TRUE" %>
rtsp://myserver/filename.ra?start=""&end=""&title="Test"
--stop--
pnm://myserver/filename.ra?start=""&end=""&title="Test"
Funny thing is, that same code works fine for Windows Media Player
Files (ContentType=audio/x-ms-wma).....
Any ideas?
Thanks!
Lone