Flash sound question

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post February 28th, 2007, 1:41 am

I made a mp3 player in flash, which gets the list of songs from an xml file.
I wonder what happens when you jump to the next song, before the current one is completly preloaded. Tested with simulate download shows that the preload speed decrease with each new mp3 that's incompletly loaded. Does this happen on web too? (didn't tested yet, but i will soon).
If so, is there any method to stop the downloading of the current playing mp3 in order to preload only the the next one? I seen that in actionscript 3 there is close() function which close the stream, but for actionscript 2 there aint such thing.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 28th, 2007, 1:41 am

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post February 28th, 2007, 3:35 am

Not only does it happen, but it's possible to crash the browser with it if you're not carefull from what I understand.

I haven't bothered to look for a work around, I haven't had any complaints regarding the issue.
I'm waiting for Adobe (I still want to say Macromedia) to fix it.
Strong with this one, the sudo is.
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post February 28th, 2007, 4:15 am

This mean i will stop the functionality of Next - Previous buttons until the current mp3 is fully loaded.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post March 2nd, 2007, 3:57 pm

i've found that its best to just disable controls until a buffer or stream completes. The same problem occurs for video since you can stop the stream but not reliably clear the buffer... Oh well maybe in the next release
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post March 5th, 2007, 12:46 am

i seen that NetStream has the close() method ... and i suppose it actually close the stream.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 43 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.