Solved

loadsound and removing old music

Posted on 2004-10-07
8
162 Views
Last Modified: 2010-05-18
Hi, I have something like this:
url = "http://www.domain.com/file.mp3";
player2 = new Sound();
player2.loadSound(url, true);

my mp3 is like 300 megs, (some mix :) )

I set my web setting for it can't send more of 4kb/sec  (the quality of mp3 is 24kbs)

But I have a problem with old and slow computer, flash seem to load mp3 in memory,and after 30-40 megs, some computer crash or get very slow. is there a way I can "clear" old mp3, I mean after the mp3 "play" the position, is there a way it can "remove" it, for now it "keep" it...


sorry for bad english.
0
Comment
Question by:Yard072999
  • 3
  • 2
8 Comments
 
LVL 6

Expert Comment

by:hsmtp
ID: 12256912
Hi Yard,

There a lot of problems with long sound and video.
I think you need to split your mp3 into lot of smaller mp3s, so each will be 5-15mb.
And when one part finishes you load another.

Good luck with your project!
0
 

Author Comment

by:Yard072999
ID: 12259557
if i'm doing that, I will have a "cut" in the sound no?
0
 
LVL 6

Accepted Solution

by:
hsmtp earned 500 total points
ID: 12259599
If you start buffering before previous track is finished, then you will have no gap between.
0
 

Author Comment

by:Yard072999
ID: 12263299
yep you're right, but I'm making stats for how much time each people listen in 1 connection, if I'm doing that I will "lose" that stats.
0
 
LVL 6

Expert Comment

by:hsmtp
ID: 12265953
What can I tell you?
If you want to provide the ability to listen music, you may reprogram your stats. This will be not so easy, but still can be done.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question