English 中文(简体)
Loading ID3 tags without loading sound in AS3
原标题:

Is there a way to load ID3 tags in AS3 without loading sound?

问题回答

well you can simply start loading the sound, with bufferTime = 0, and when the id3 data is available, you just close the stream.

or, if the sound is distributed through a server, then the server could read out the ID3 and provide an API to get it.

Well using AS3 to read the ID3 Tags is probably not the way to go. You can of course use PHP, C#, Python or any other language to read the ID3 tags out of an MP3.

For instance you can have a PHP Script "id3Reader.php?file=mymp3.php" and will return an XML containing all the ID3 info, then you can parse that in AS3 which is rather quick. I recommend using caching in the PHP part or probably having a data store like mysql so you don t have to be reading the id3 tag over an over. Although PHP is a rotten language it does its job and for this kind of task it does it well.

Reading ID3 with PHP

http://php.net/manual/en/ref.id3.php





相关问题
Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

Play sound in iPhone web app with Javascript?

I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...

热门标签