![]() if you're interested in reading just the content, you can create an instance of ID3TagContentReader by passing to it the ID3Tag received from the read API and then access the frames content by using its methods (see the doc to have a list of all the methods available).public func read(mp3: Data) throws -> ID3Tag?Īfter getting a ID3Tag from one of the read API above, you have two options to read the content:.public func read(from path: String) throws -> ID3Tag?.To read the ID3 tag of an mp3 file you can choose between two API contained in the ID3TagEditor class: ID3TagEditor gives you the ability to read and write ID3Tag to your mp3 files. Linux (on distros where Swift is available).ID3TagEditor is compatible with the following platforms: swift-tools-version:5.0 import PackageDescription let package = Package( ID3TagEditor is also available as a pod on CocoaPods.Īdd the dependency to your Podfile (choose the release version you prefer): ![]() See the demo project for a complete example of the setup of the framework. (Given the filename is the desired title.) Just open the file in VLC player, Ctrl+I, choose the desired Metadata, title etc, change and then in the bottom, click 'Save Data'. You can follow the standard procedure to install a custom Cocoa Touch framework.ĭrag the ID3TagEditor.xcodeproj inside your project and add it to the Embedded Binaries/Linked Frameworks and Libraries section of your project. As an addition one could use mkvpropedit in a bash script to set the title of all mkv files in a directory. ID3TagEditor is also available as a framework. To manually install ID3TagEditor simply drag and drop all the file contained in the Sourceįolder inside your project (except for the ist file).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |