Link to home
Start Free TrialLog in
Avatar of stillmoretogain
stillmoretogain

asked on

Streaming MP3s from Helix server to Flash player

Basically, I have a Flash player that plays MP3s. I'd like to leverage the streaming capabilities of the Helix server to stream MP3s to this Flash player I've created.

My question is:

--Can Helix stream MP3s?
--Can this streamed MP3 be used sans RTSP or RAM file?
--If not, is there any suggestion for how to use a Flash MP3 player to connect to an MP3 without simply pointing to the URL? And if so will it still be using the streaming capabilities of the Helix server?
--And, finally, has there been any success using the RAM file pointed to by a Flash player?

Any help would be appreciated.

Thanks.
Avatar of daluu
daluu
Flag of United States of America image

Interesting project you would like to do. Something work checking out for me.

However, I doubt you could do much interfacing Flash with the Helix server, I think. One thing for sure, RAM is not supported by Flash (unless you have it as a link that simply opens the RAM file in a browser). Only MP3 extensions are supported for embedding/streaming within Flash. I've never done MP3 streaming on Helix server, but I think its only done by RTSP and Flash probably accepts HTTP only. You might want to look at Apple's Darwin Streaming Server (for Quicktime), which definitely does do MP3, as I've tried it and it uses RTSP.

Flash should stream MP3's loaded into it I think, but it was meant more as in static file retrieval I believe. What you can do for retrieving MP3's dynamically instead of having it preset in your Flash movie, is to either

1) have the location of the MP3 to be retrieved stored as a Flash variable that it can use to load the file. You can do this by setting a variable, called "source" for example, in the Flash file, then give the variable a value dynamically by appending to URL of Flash SWF file page like http://www.site.com/flashmovie.swf?source=myMP3.mp3 (assuming MP3 in same directory)

2) using ASP/PHP/JSP/etc. scripting to retrieve the MP3 file from a directory, database, or interface with Helix/Darwin/Windows Streaming server. with results imported into Flash movie (using the MX technologies)

In any case, how to load the MP3 file into flash, you'll have to look that up, as I haven't tried that myself yet.
Avatar of stillmoretogain
stillmoretogain

ASKER

Thanks, daluu. Looks like you've drawn the same conclusion I've come to: sometimes forging new ground can be a solo act. It is frustrating to see that no one has tried to do this, and that Helix and Flash have such a distant relationship.

In your first example, does it assume that the SWF and MP3 are in the same directory? If so, your suggestion is basically to bypass the Helix server and store the MP3, SWF, and conceivably the XML within the same directory on the same server. One of my goals is to keep all of my rich media (excluding SWF files) in one media repository, the Helix server.

I'll look more closely at your second suggestion and let you know how it works out. I have an ASP resource that might be able to shed some light on this suggestion.

Thanks again.
well, you can set it to a different directory, whether by scripting or variable passing as in the first example, but you will have to add that part of the info in your Flash file. Otherwise, for the first example, you would have to precede the filename with the relative or absolute path to pass to the variable.
the flash documentation doesn't say it supports RTSP, so at present, you probably can't make much use of the Helix server except:

If you can set the Helix server to use HTTP also on some port, then you can try that. Flash might be able to load the streamed MP3 from Helix server if the protocol is HTTP.
I can set the RAM file to point to an HTTP using the Real server. The question that comes up is how will Flash know what to do with a RAM file. Odds are it won't. I'm not quite sure how to get around that though.
you're right. flash won't recognize the RAM.

Humm, I've never worked with Helix server before, but I guess you still need to use a RAM file then huh? Do you still need a RAM file for RTSP? I know RAM is used for Real Audio/Video (over HTTP & RTSP), but I thought you can stream the MP3 simply with a URL like rtsp://site.com/file.mp3 (without use of RAM)

I know that's how Darwin Streaming server & Windows media works. but I haven't tried doing that using HTTP on them, only RTSP & MMS.

you might want to check into the Helix documentation on streaming MP3s and HTTP streaming (if you're not sure about it)
ASKER CERTIFIED SOLUTION
Avatar of daluu
daluu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah, just as I thought. Looks like we'll have to use it as a web server. Thanks for your help daluu.