secutanu
03-01-2001, 01:50 AM
How do i stream realaudio files from my site?
nathan
03-03-2001, 03:14 AM
HR supports http streaming (heh, doesn't everyone?) so I'll give you info on that.
RealAudio calls it "psuedo-streaming" because it is streaming without using their proprietary server. It works well enough without their server if you are offering low-bandwidth stuff on a low-traffic site.
This info is probably elsewhere in the KB but I'll try to cover it here for you
==========================================================
open a basic text editor (notepad or simpletext) and write:
http://www.yourdomain.com/path/filename.ra
and save this txt file as "filename.ram"
"www.yourdomain.com" is your site's address (URL)
and "/path/" is the directory(s) you put your realAudio files in, and "filename.ra" is the name of your realAudio file.
Put the "filename.ram" file anywhere in your site (inside the public directory)
On a HTML page, link to the "filename.ram" file.
When user's click on this text link it will open their RealAudio app and begin to steam.
See http://www.matrixmag.com/media for an example.
(this assumes you have the correct media types configured, and I think HR does by default.)
EXTRA NOTES:
1.) also, you can do the same thing with your mp3 files, just name the pointer file "filename.m3u"
(you'll want to add media type audio/x-mpegurl
to your .htaccess for the extention m3u)
2.) You can include comments in your .ram files by using the "#" character. Such as:
# This comment line will be ignored
http://www.matrixmag.com/media/audio/mocha/eargasm.ra
3.) You can have multiple files stream one after another if you wish just put the URLs in the order of play:
# these RealAudio files will stream in this order
http://www.matrixmag.com/media/audio/mocha/eargasm.ra
http://www.matrixmag.com/media/audio/mocha/roots.ra
http://www.matrixmag.com/media/audio/tony/disclaimer.ra
4.) there are more tricks you can do with RealServer, but I think this covers http streaming. If anyone knows more I am all ears.
hope that helps.
Cheers,
Nathan
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.