Marc Renaud
Marc Renaud

Reputation: 61

IOS: How to get ID3 tags from an mp3 file on Dropbox sync

Is there a way to get ID3 tags from NSData or from the NSFileHandle without saving another copy of the file to the disk first?

The reason I ask is I need to get the ID3 tags from mp3 files on dropbox using sync API. The sync API returns a DBFile object which can give you NSData and NSFileHandle for the cached file.

AVAssetUrl and AVAsset cannot be created using NSData so this method for getting ID3 tags seems out of the question.

Or maybe someone can recommend a better way to get ID3 tags from the dropbox DBFile besides NSData and NSFileHandle.

Upvotes: 2

Views: 539

Answers (1)

user94559
user94559

Reputation: 60153

You'll probably have to write the data to a file and then get a URL to that file to use when initializing your AVAsset.

Upvotes: 0

Related Questions