playing mp3s with netStream

  • johnnygod
  • Novice
  • Novice
  • johnnygod
  • Posts: 25

Post 3+ Months Ago

Does any know if I can play mp3 s through my progressive download video set up?

Live docs indicate that this can be done with the netStream class when streaming with Flash Comm Server, but can we use the netStream class to play an mp3 with a simple progressive download set up?

Code: [ Select ]

    var netConnection_nc:NetConnection=new NetConnection;
netConnection_nc.connect(null);

var netStream_ns:NetStream=new NetStream(netConnection_nc);

_root.play_mc.onPress=function(){
    netStream_ns.play(currentSong);
}
  1.     var netConnection_nc:NetConnection=new NetConnection;
  2. netConnection_nc.connect(null);
  3. var netStream_ns:NetStream=new NetStream(netConnection_nc);
  4. _root.play_mc.onPress=function(){
  5.     netStream_ns.play(currentSong);
  6. }
  • johnnygod
  • Novice
  • Novice
  • johnnygod
  • Posts: 25

Post 3+ Months Ago

or this

Code: [ Select ]
var myNetConnection:NetConnection=new NetConnection();

myNetConnection.connect(null);

var netStream_ns:NetStream=new NetStream(myNetConnection);

_root.myVideo.attachVideo(netStream_ns);

netStream_ns.play("mp3:audio/beatles")
  1. var myNetConnection:NetConnection=new NetConnection();
  2. myNetConnection.connect(null);
  3. var netStream_ns:NetStream=new NetStream(myNetConnection);
  4. _root.myVideo.attachVideo(netStream_ns);
  5. netStream_ns.play("mp3:audio/beatles")
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

i thought that Sound class was specially designed for loading external mp3, don't know why you beat your head against the wall trying to do this with NetStream.
Code: [ Select ]
var sSound:Sound = new Sound(this);
sSound.loadSound("mysound.mp3", true);
  1. var sSound:Sound = new Sound(this);
  2. sSound.loadSound("mysound.mp3", true);
  • johnnygod
  • Novice
  • Novice
  • johnnygod
  • Posts: 25

Post 3+ Months Ago

The NetStream play pause clear methods along with flash comm server seems to give more options for design and development - also the sound associated with the video and netSream seem to have less latency issues

http://cluttered.flvservers.com/audioPlayer02.html

with Song.loadSound

http://cluttered.flvservers.com/movieAudioPlayer.html

netStream

have you ever seen this done? netStream.play(Mp3:mySong)
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

nope, never seen netStream to play a mp3.
Only flv. If you find a software to convert from mp3 to flv and instead of image a blank image, then you can play it with the netStream.
  • bozboz
  • Novice
  • Novice
  • bozboz
  • Posts: 31
  • Loc: Brighton

Post 3+ Months Ago

Yeah i was trying to do this as well but not having any joy. I wanted one component that could handle video and mp3 that would be quite versatile. Anyone ever worked a way to do this?

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.