473,413 Members | 1,731 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

RealPlayer Contenttype in asp.net not working?

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
Nov 19 '05 #1
0 1222

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: MichaelF | last post by:
I've embedded a RealPlayer window in a page, and am unable to get mouse clicks. The clip plays, but clicks are ignored. I'm running IE5.5 on Win2k, with the following code: <embed...
4
by: Slim | last post by:
I had a asp file that generated asx files using Response.ContentType = "video/x-ms-asf" It was working fine up until a day or so ago. Now all of a sudden it does not work. If I take out the...
1
by: Zoury | last post by:
Hi Folks ! :O) In a web application, I'm trying to load a PDF document in the client's browser. The following code works on my workstation but fails on another one : '*** With Response...
5
by: TJS | last post by:
trying to display pdf file in browser fails on this line: Response.ContentType = "application/pdf" getting an error about no declaration found for "response" what declaration is needed ???
5
by: David Thielen | last post by:
Hi; I am writing the output of a page directly using IHttpHandler, IRequireSessionState and if it is a text file I set HttpContext.Response.ContentType = "text/plain". But when it displays I get...
8
by: Katie | last post by:
Hi, I am trying to set the content type and header for the response object but for some reason it doesnt set it. I tried it on dev and it worked fine but didnot on production. The difference is...
0
by: scottf35 | last post by:
Hi, I am working on (read that - upgrading) an application. This application creates an HTTPWebRequest object, populates it with values which are then sucked out of the Request.Form object (eg...
1
by: gts | last post by:
Hello, I'm putting together a page with some links to videos. One link plays the video and the other is supposed to allow the user to download the file by forcing the "save as" box. For the download...
0
by: caothanhtra | last post by:
Dear my friend. Can you tell me how to use Realplayer dll in my C# project? Give a small example. thanks.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.