internet.com

Developer Channel

SYMM

Real G2 Basics (7)

Reference the RAM File
If you have overcome the simplicity of the RAM file creation, it is time to make a link in your HTML. Treat your RAM file just like any other HTML file. For example, a relative link to the RAM file from a an HTML page in the same folder might look like this:

<a href="myvideo.ram">Click me</a>

Upload your files to the server and test your link out. When the user clicks on the hyperlink to the RAM file, the RAM file will load into the browser and begin the hand off to the player. Since the RAM file carries an absolute URL, the RAM file can be in another account or even located another server. It will play just fine. Try this link to see a RAM file in operation.

RAMGEN
So far, I have shown you RAM files for pseudo-streaming off of a normal Web server. RAM files will be slightly different if you are working with a RealServer. I suggest you study the Real documentation for your situation if you are not pseudo-streaming.

There is a handy trick, however, that you can use when working with a RealServer. By using a RAMGEN command in your hyperlink, you can force the server to automatically generate a RAM file for you. This simplifies things even further. A typical RAMGEN link in your HTML to a RealServer running on port 7070 (or whatever port your administrator set up) might look something like this:

<a href="http://www.myserver.com:7070/ramgen/myfolder/myvideo.rm">Click me</a>

Notice that I referenced the streaming clip directly. The "ramgen" reference in the path will make sure that the RealServer generates a RAM file and feeds it to the browser.

If all this RAMGEN stuff seems confusing, don't panic. Your server administrator can help you figure out the proper port number and path structure.


<< Prev 123456 • 7 • 8 Next >>
 
The Latest WebDev Tips from DevX

Receive news via our XML/RSS feed
XMLRSS



Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers