Since I'm assuming your RealAudio show is a live stream, then there
won't be any file on the server for you to check. So CFFILE and
FileExists are useless for this case.
Now... To the best of my memory, REAL uses an HTTP-like protocol for
requesting streams. Once the stream is setup, it jumps over to a
completely different protocol (RTSP -- there's an RFC for it). What you
may be able to do is use CFHTTP to connect to the standard RealServer
request port. If the stream doesn't exist, I *think* you'll get
something like a 404 not found error that CFHTTP may be able to
recognize. No guarantees, tho; and chances are if CFHTTP doesn't like
what it sees, it might take your server out....
Your safest bet would be to use CFX_TCPClient as mentioned by someone
else on this thread.
Honestly, tho... I'd look into different web designs that wouldn't
include this functionality. What you're trying to do, no matter how you
accomplish it, will add a huge amount of overhead and a good chance for
server instability for a rather small feature.
I'm assuming you want your web design to show a "Click Here to Listen"
type link only when there's actually a show in progress, right? Since
your show probably runs on some sort of regular schedule, why not keep
that schedule in a database and use that information to display the link
when appropriate? Trying to connect to your RealServer for every single
request to the page with this link would probably have very bad effects
on both your RealServer and your CFServer.
Best regards,
Zac Bedell
> -----Original Message-----
> From: David Grabbe [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 3:57 PM
> To: CF-Talk
> Subject: RealAudio and ColdFusion
>
>
> Howdy folks,
>
> I'm running CF 4.5.1. The organization I work for has a
> weekly program which we stream via RealAudio. The RealAudio
> aspect is working just fine, but I'm wondering if there is a
> way for CF to detect whether or not the RealAudio stream is
> active or not (i.e. check for the existence of the .rm file).
> I looked into using CFHTTP, but couldn't get that to work --
> probably because of the media type. I'm not actually wanting
> to download, just see if the stream exists. If there an easy
> way to do this? Are there any RA gurus out there :)
>
> Thanks in advance!
>
> Cheers,
> David
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists