1 Reply Latest reply on May 19, 2009 10:04 AM by kglad

    streaming mp3 length - how to get it

    maxelcat Level 1

      Hi

       

      I am using as2 to stream some mp3s. At the moment I have an attribute within the xml for giving me the length.

       

      I guess the length for the mp3s is buried in the mmp3 file somewhere. If I load the files in totally first, then I can get at the info (ID3 is it?) however, this doesn't work for streaming them . Or rather, I can't make it work! (I have found posts which suggest making an estimate if you know how much has downloaded in so many seconds and you know the length etc etc - but this is exactly that - an estimate!)

       

      So my question is how do I get the length of an mp3 clip that I am going to stream?

       

      THanks