Solved

How to embed REALAUDIO in HTML ?

Posted on 1998-08-31
19
728 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Sorry, RM and RV has the same problem
0
 
LVL 12

Expert Comment

by:Otta
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Expert Comment

by:jamestthomas
Comment Utility
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
Comment Utility
Good luck, you'll need it
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

772 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