Chin
Chin

Reputation: 12712

Getting the bit rate of a externally loaded mp3 in the flashplayer

does anyone know if this is possible?

much appreciated,

Upvotes: 0

Views: 564

Answers (1)

ricick
ricick

Reputation: 5766

Using the native flash sound class, you can read the id3 metadata property of the sound object, however this depends on the software that encoded the mp3 putting the encoding information in the metadata. there's nothing inherent to the mp3 itself that reports this to the sound class, and the metadata is often missing or unreliable.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Sound.html#id3

alternatively there's this 3rd party utility for reading actual mp3 header information, which is much more accurate.

http://code.google.com/p/mp3infoutil/

Upvotes: 2

Related Questions