开发者

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

does anyone know if this is possible?

开发者_如何学运维

much appreciated,


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜