I imagine the mp3 will need to played at runtime first to generate the complete spectrum waveform. So that would mean no, but maybe someone else has a briliant idea.
This is possible to do with AS3 and flash player 10, but it needs to have the whole file downloaded first.
I haven’t seen any in active den, but maybe there already ares some.
If no, I maybe could make one.
This is possible to do with AS3 and flash player 10, but it needs to have the whole file downloaded first.
I haven't seen any in active den, but maybe there already ares some.
If no, I maybe could make one.
Most solutions in flash use SoundMixer.computeSpectrum for the waveform (or read 'visualization), I’ve created mp3 players using that. But those visualizations are created at-runtime so I think first thing you’ll need to find out if it’s even possible to have a ‘image’/‘visualization’ of the complete track available on start. I think that the only way is that these are loaded seperately and not created from the actual mp3 while/before played. That doesn’t mean they can’t be precreated at some point (maybe indeed from upload?), but that’s a whole different matter.
Anyone thinks I’m wrong, in that case I’m curious to see how it could be done.
With flash 10 it is possible. We can access bytearray datas from an mp3 with the extract method and use it to create the waveform.
I don’t know how many time I’d need since I have a lot of work.
Mrjamie ? Do you need this very quickly or not ?
yes, same as I do/did
public var ba:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(ba, false);
but can you extrapolate all ba[] data ‘beforehand’ and generate a graph not-at runtime? sounds promising if that’s possible. good luck if you jump on that and would welcome a shout if you have an example of final result… curious to see it working since I’ve had this particular request before and didn’t see any on-the-fly solution.
Amazing work! Everyone else - this player is awesome, an actual true represented waveform player, generated on the fly from your XML playlist… oh yeah!