I read from here to play an mp3 file like this:

coolTune = new Sound (soundLoader);
coolTune.loadSound("somesong.mp3", true);

(http://www.webdeveloper.com/forum/archive/index.php/t-38474.html)

and attaching "coolTune" here (see the last line):

var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("yourVideo.flv");
this.createEmptyMovieClip("flv_mc", this.getNextHighestDepth());
flv_mc.attachAudio(my_ns);
var audio_sound:Sound = new Sound(flv_mc);

(http://www.adobe.com/livedocs/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000569.html)

And pray that the sound would be rendered and looped to the mic? :P
Can it be done? I'm being optimist?

Thank you very much Sarah and everybody.

L.

On Fri, Jan 29, 2010 at 12:35 PM, Sarah Allen <[email protected]> wrote:
>
> Unless something has recently changed, Flash doesn't support recording mp3 
> audio (in OpenLaszo, Air, or anything else)... you can record and convert to 
> mp3 on the server.
> There's a popular open source tool, ffmpeg, and this article talks about 
> other options (and explains the Flash format a bit):
> http://blog.andrewpaulsimmons.com/2007/05/recording-audio-with-flash-player-to.html
> On Jan 29, 2010, at 6:55 AM, Lucas Lain wrote:
>
> I found this (openlaszlo air application):
> http://www.antunkarlovac.com/blog/2008/02/19/writing-an-openlaszlo-air-application/
>
> And since I saw a couple of air applications dealing with files, I thought it 
> would be possible to broadcast a file ... I am wrong? Tips? ideas?
> Thank you very much.
> Lucas.
>
> On Thu, Jan 28, 2010 at 6:18 PM, Lucas Lain <[email protected]> wrote:
>>
>> Hello everybody,
>>
>> I'm trying to build an APP that streams an mp3 file to a RED5 server.
>>
>> Is there a way to do so?
>>
>> Maybe to hook up the file instead of the microphone...
>>
>> Any ideas would be great :)
>>
>> Thank you very much.
>>
>> Lucas.
>> ps: I build a one-click broadcast system (http://flipzu.com - firefox only 
>> by now). I want to add mp3 support ... for radio hams.
>>
>> --
>> Lucas
>> http://flipzu.com
>
>
>
> --
> Lucas
>
>
>
>



--
Lucas

Reply via email to