How to write Streaming URLs

From ITwiki

Revision as of 12:30, 8 October 2007 by Khockenb (Talk | contribs)
Jump to: navigation, search

What URL to use for streaming media depends in part on what format streaming media you are using.

Real Media

If you are using Real Media (.rm) files, you can write URLs one of two ways, either with http, using the ramgen function, or rtsp, writing the URL directly.

Let us say that your content directory is called "MyDirectory" and your media file is "video1.rm". In that case, the streaming URL could be written as

http://stream.stevens.edu/ramgen/MyDirectory/video1.rm

or as an rtsp link

rtsp://stream.stevens.edu/MyDirectory/video1.rm

Note that you only use the ramgen function on http URLs, not on rtsp ones.

Both of these will do the same thing. The http URL just adds a step where the browser is told where to look for rtsp content.

Windows Media

This works very similar to Real Media, but with two important changes.

In this example, let us say your content directory is "MyDirectory" and your media file is "video1.wmv". Your stream URL can be written either with the aid of asxgen as

http://stream.stevens.edu/asxgen/MyDirectory/video1.wmv.asx

or directly as

mms://stream.stevens.edu/MyDirectory/video1.wmv

Other Formats

If you are streaming mp3 audio files, or mpeg or mp4 video, you should write an rtsp URL directly, as so:

rtsp://stream.stevens.edu/MyDirectory/audio1.mp3

For more information, please consult the Helix Server Guide at http://service.real.com/help/library/guides/helixuniversalserver/realsrvr.htm

Personal tools