使用目标c阅读MP3信息 [英] Reading MP3 information using objective c

查看:140
本文介绍了使用目标c阅读MP3信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有存储在iPhone上的 mp3 文件,我的应用程序应该能够读取 ID3 信息,即以秒为单位的长度,艺术家等。
有没有人知道如何在Objective-C中使用这个或者使用什么库?

I have mp3 files stored on the iPhone and I my application should to be able to read the ID3 information, i.e length in seconds, artist, etc. Does anyone know how to do this or what library to use in Objective-C?

你的想法很多赞赏。

推荐答案

可以读取ID3信息,检索 kAudioFilePropertyInfoDictionary 属性使用AudioToolbox框架的 AudioFileGetProperty 函数的音频文件。

ID3 information can be read retrieving the kAudioFilePropertyInfoDictionary property of an audio file using the AudioFileGetProperty function of the AudioToolbox framework.

详细说明可在 iphonedevbook.com

编辑:原始链接现已关闭。 InformIT 有一些类似的示例代码,但它不是完成。

edit: Original link is now down. InformIT has some similar sample code, but it's not as complete.

这篇关于使用目标c阅读MP3信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆