Yea I got it to play that way but I don’t really want to write my own set of controls to handle play and stop.

 

There must be a way to do it with the MediaPlayback control I just can’t figure out what it is.

 

 

 

Anyone else have any suggestions?

 

 

 

 

 

 

 

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Monday, December 12, 2005 10:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Stream mp3's with Flash Media Server and Flex

 

I don't know how you do it in the MediaPlayback component, but playing it via a NetStream is just as simple as:

 

nc = new NetConnection();

nc.connect("rtmp://yourserver/app");

nc["owner"] = this;

nc.>

{

    if(o.code == "NetConnection.Connect.Success")

    {

        this.owner.playMP3();

    }

}

 

function playMP3()

{

    myns = new NetStream(nc);

    myns.play("some.mp3");

}

...so, maybe you have to issue a play("some.mp3")?  Not sure of the methods of that component.

 

----- Original Message -----

Sent: Monday, December 12, 2005 12:48 AM

Subject: [flexcoders] Stream mp3's with Flash Media Server and Flex

 

I want to use a MediaPlayback component to play an mp3 using Flash Media Server in Flex.

 

I can successfully connect to my FMS application but I don’t have any idea how to make an mp3 play in Flex after connecting.

 

 

I haven’t really been able to find a good explanation anywhere online or in the docs.

 

 

Any help would be greatly appreciated.

 

 

Thanks

 

Kelly Roman

Dekayd Media Inc.

[EMAIL PROTECTED]

www.dekaydmedia.com

 

 

 

 

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS

 

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to