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

◇◆丶佛笑我妖孽 提交于 2019-12-25 07:59:47

问题


does anyone know if this is possible?

much appreciated,


回答1:


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/



来源:https://stackoverflow.com/questions/6018224/getting-the-bit-rate-of-a-externally-loaded-mp3-in-the-flashplayer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!