RealPlayer Contenttype in asp.net not working?

L

Lone

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top