Solved

How to embed REALAUDIO in HTML ?

Posted on 1998-08-31
19
732 Views
Last Modified: 2010-04-09
I have a file.rm (Realplayer Movie) file and I need to embed it into my html page. How can I do that?
0
Comment
Question by:Patricia080698
  • 4
  • 4
  • 4
  • +4
19 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1837243
In HTML all you have to do is to link to it as any other page, image or whatever.

Of course there's a tricky part involved...your server must have some special software to deal with streaming files.

If it's your own server, I think you can get that kind of software at http://www.real.com/solutions/internet/index.html.
It will cost you a bit but I have no idea how much.

Otherwise, ask your ISP if they support RealAudio. (I don't think they do)

Martin
0
 
LVL 1

Author Comment

by:Patricia080698
ID: 1837244
Martin,

I am the Internet service provider. I need the html tags to insert the real player's controls directly into my web page.
0
 
LVL 4

Expert Comment

by:martinag
ID: 1837245
You can have a look at http://www.film.com/screen/all.html
It is really advanced, so if you don't understand it just let me know.

Martin
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1837246
Please remember to warn people behind firewalls/using proxy servers that they might not be able to get RA since it normally uses ports outside normal ranges... It took me many weeks before I found out that it was our proxy server that disallowed receiving RA

Michel
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1837247
Sorry, RM and RV has the same problem
0
 
LVL 12

Expert Comment

by:Otta
ID: 1837248
Take a look at the HTML source-code at the CBC
(Canadian Broadcasting Company) web-site: http://WWW.CBC.CA

Many of their programs are available via RealAudio,
and examining the HTML will show you how they do it;
just "copy" the snippets of HTML which you want.
0
 
LVL 2

Expert Comment

by:jamestthomas
ID: 1837249
You have to reference the audio.exe program and use it properly.  Of course you will have to have a library of recordings to be accessed.  I would contact the real audio people for that.
Here is an example:

<li><A HREF="http://www.musicserver.com:8080/scripts/audio.exe?/user12345/~n-454149/0030116_0102_00_0002.ra">Real Audio</a><br>
0
 
LVL 1

Author Comment

by:Patricia080698
ID: 1837250
jamestthomas I am not sure that I understand your answer. Please be a bit more clear. I am an ISP (Internet service provider) and I need to play a .ra file in an html. I need to put the .ra file on one of my servers. How can I make the controls of the RealAudio embed within my html form.

If I make a simple link, it opens up the RealAudio Player and starts toplay the movie. That is good. But instead of opening the Player, I need to embed it within my HTML form.
0
 
LVL 2

Expert Comment

by:jamestthomas
ID: 1837251
Sorry Patricia, I may have not understood your question at first.
I still think the Real Audio people are there to tell you exactly how to do what you want to do.  Anyway, goog luck.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:jamestthomas
ID: 1837252
Back again>  go to:
http://proforma.real.com/mario/devzone/realforum.html, sign up and look up RealServer.  That will be a good start for you.  I think information on using RealServer is what you need!
0
 
LVL 2

Expert Comment

by:jamestthomas
ID: 1837253
Good luck, you'll need it
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1837254
This seems to be the HTML:
<EMBED SRC="real_audiofile.ra" TYPE="audio/x-pn-realaudio-plugin" WIDTH=300 HEIGHT=150>

for a RA player with standard buttons. extension rpm and rm has been seen too

A link to the same file with .ram extension will open the player as a helper application

<A HREF="real_audiofile.ram">load and play a real audio file</A>


You can also do both, in case a user doesn't have the plug-in

<EMBED SRC="real_audiofile.ra" TYPE="audio/x-pn-realaudio-plugin" WIDTH=300 HEIGHT=150>
<NOEMBED>
<A HREF="real_audiofile.ram">load and play a real audio file</A>
</NOEMBED>

Embed is Netscape but I cannot seem to find an RA ActiveX

Michel
0
 
LVL 1

Author Comment

by:Patricia080698
ID: 1837255
mplungjan, it is not an .RA file. It is rather an .RM file. I have tried to put your answer to the test and replaced the .ra with my .rm file unfortunately did not work.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1837256
Patricia, you are very quick with the rejection.
When you reject, please tell what didn't work.

If your webserver isn't configured to tell the browser what mime types it will send, it will not work, no matter what you embed in the html.

Assuming my answer was correct, I have to ask if you have added the audio/x-pn-realaudio with all extensions rm,ra,ram
to the mime types your server understand?

You can create a file with extension .ram that contains a line pointing at the .rm file.

This is from http://service.real.com/help/content/servmime2.html

"What is a Metafile and How Does it Work?

Metafiles are text files which contain the URL location of a RealAudio or RealVideo file. Remember that RealAudio and
RealVideo files cannot be referenced directly by the Web page because this would cause them to be downloaded in their
entirety before playback. In order for the files to be played in real-time, they must be played through a RealPlayer, and served
by a RealVideo Server. Therefore there must be a link between the Web server and the RealVideo Server. The link is
contained in the metafile.

Imagine the Web page as a sheet of paper with directions to someone's house written on it. For most documents, you would
follow the directions and arrive at the house you are looking for. For RealAudio and RealVideo files, the Web page is like a
sheet of paper that gives you directions to a house, and once you arrive at the house, there is another piece of paper attached
to the door with a set of directions to another house, which is your actual destination.

The first set of directions represents a link in the HTML document to a metafile, recognized by its .ram extension. The second
set of directions represents a link from the metafile to the RealAudio or RealVideo file, recognized by its .rm or .ra extension.
Instead of pointing to the audio or video file, the HTML that comprises your Web page will point to a metafile. Unlike the usual
HTML link, the metafile does not display information through the browser, but rather, it provides the audio or video file's URL
to the RealPlayer. The Player uses this information to locate the .rm or .ra file on the RealVideo Server.

Creating .RAM Metafiles

Metafiles are text files you create that contain the location of an audio or video file. Use the following format:

pnm://hostname/path

For example, you might have the following reference for file welcome.rm:

pnm://www.realo.com/welcome.rm

The metafile does not require any other commands or information. You can put more than one file location in the metafile, and it
will play each file consecutively. When saving the metafile, use the .ram extension. The previous example might be saved in a
file with the name welcome.ram.

In your HTML document, reference the metafile in a hyperlink, as follows:

<A HREF="http://www.real.com/welcome.ram">Welcome!</A>

The metafile does not require any other commands or information. If you have spaces or control characters in this file, some
versions of the Player will not be able to translate the text into a URL. You can put more than one file location in the metafile,
and it will play each file consecutively. When saving the metafile, use the .ram extension. The previous example might be saved
in a file with the name welcome.ram. When you ftp the metafile to your Web server, choose ascii for the transfer mode.

In your HTML document, reference the metafile in a hyperlink, followed by a reference to the Real icon (so that the icon will
display to the left of the file) as follows:

<A HREF="http://www.real.com/welcome.ram"><IMG SRC="http://www.real.com/pics/real.gif" align=left
border=0 hspace=10>Welcome!</A>

The welcome file would display on your Web site as follows:

         Welcome!



Configuring the Web Server for RealAudio and RealVideo

Once you place a metafile on your Web server, you'll need to configure the server to recognize the .ram extension as the
MIME type x-pn-realaudio. The MIME type will be displayed in the HTML header sent to the user's Web browser. This, in
turn, activates the RealPlayer so that it can retrieve and play the RealAudio or RealVideo file. Since servers are configured in
different ways, you will need to choose from the following list for instructions for your server."


Michel

0
 

Accepted Solution

by:
trekkie earned 100 total points
ID: 1837257
I had this same problem with my site, but after some hunting, here is what I found.  Go to:

http://service.real.com/help/library/plugtest/plugin.html

On this page, there are options to choose what kind of controls you want to be displayed:  video screen, vol control, etc.  You select it, it gives you a preview, and it gives you the html code.  Just modify it so that it points to your .rpm file.  That is all there is to it.  If you need to make an .rpm file.  All you have to do is make a blank text document, include the full url to your .rm file on one line, save it as whatever.rpm and put it in the directory with your .rm file.  If that does not get it, let me know and I will give you more detailed instructions.
0
 
LVL 1

Author Comment

by:Patricia080698
ID: 1837258
Trekkie :

The embed thing works but It does not play any movie. It says that the url is not correct. I have created a .rpm file as you said and put it in my images directory (same directory as my movie). my video.rpm file contains :

http://www.mysite.com/images/video.rpm

my video.rm file is also in images directory. why isn't it working?
0
 

Expert Comment

by:trekkie
ID: 1837259
Could you please show me what exactly is in your .rpm file and what html code you are using?  It would be better if I knew where your site was, then I could directly see what the problem is.  Either way, I need to see what you are working with.
0
 

Expert Comment

by:trekkie
ID: 1837260
Here is some code that I use on my site which plays a real media clip without showing any controls.  It is not a video, but the basic idea is the same.

<embed src="highlander.rpm" width="0" height="0" controls="StatusBar" autostart="true" console="Clip1">

Here is what is in the .rpm file:

http://www.thecontinuum.com/highlander.rm

One line, full path.  You cannot use relative paths and unless you are on a Real Media server, you have to use the http protocol.  My site is www.thecontinuum.com.  Go there if you would like to see it in action.
0
 

Expert Comment

by:Roricka
ID: 8252226
Using the embed syntax, is there a way to have the browser display a message to install Real Player if it is not already present?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now