Macromedia Flash Server - Playing mp3 files

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > March 2006 > Playing mp3 files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Playing mp3 files
Jake Hilton

2006-03-21, 2:49 am

Noob question probably..

I am well aware of how to play mp3 files from the fms server but I am havin=
g
problems playing one back locally.

nc =3D new NetConnection();
nc.connect(null);

ns =3D new NetStream(nc);
ns.play("mp3:testSound");

testSound is an mp3 in the same dir as the swf.

Possible?

Jake
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Bill Sanders

2006-03-21, 2:49 am

Jake,

You can do that w/ the Sound class--like so:

var jSound:Sound = new Sound();
jSound.loadSound("RikiLeeJones.mp3", true);

Your mp3 file is external, but it works like a progressive download
ala FLV.

HTH,
Bill


On Mar 20, 2006, at 4:46 PM, Jake Hilton wrote:

> Noob question probably..
>
> I am well aware of how to play mp3 files from the fms server but I
> am having
> problems playing one back locally.
>
> nc = new NetConnection();
> nc.connect(null);
>
> ns = new NetStream(nc);
> ns.play("mp3:testSound");
>
> testSound is an mp3 in the same dir as the swf.
>
> Possible?
>
> Jake
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com


bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Jake Hilton

2006-03-21, 2:49 am

Bill,
I just didn't want to have to code for mp3 and flv support. I have used the
Sound object before but was hoping the methodology for playing a local flv
would hold true for an mp3.

Jake

On 3/20/06, Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:
>
> Jake,
>
> You can do that w/ the Sound class--like so:
>
> var jSound:Sound =3D new Sound();
> jSound.loadSound("RikiLeeJones.mp3", true);
>
> Your mp3 file is external, but it works like a progressive download
> ala FLV.
>
> HTH,
> Bill
>
>
> On Mar 20, 2006, at 4:46 PM, Jake Hilton wrote:
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Bill Sanders

2006-03-21, 2:49 am

Jake,

I figured you knew that, but I've been tripping on simple things
lately that I thought you may have the same affliction. In another
app that I was switching between different live streams, recorded
streams and MP3 files, I found that MP3 files jammed on the server
side stream when they were introduced into the mix; so, there's
probably more to the difference between live/FLV streams and
streaming MP3 files as well.

Bill

On Mar 20, 2006, at 5:04 PM, Jake Hilton wrote:

> Bill,
> I just didn't want to have to code for mp3 and flv support. I have
> used the
> Sound object before but was hoping the methodology for playing a
> local flv
> would hold true for an mp3.
>
> Jake
>
> On 3/20/06, Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com


bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com